Commit 421e5a74 authored by Amos Latteier's avatar Amos Latteier

Fixed bug in fork attempt counting.

parent 7ac0c3c2
...@@ -159,7 +159,7 @@ def heartbeat(): ...@@ -159,7 +159,7 @@ def heartbeat():
def forkit(attempts = FORK_ATTEMPTS): def forkit(attempts = FORK_ATTEMPTS):
while attempts: while attempts:
# if at first you don't succeed... # if at first you don't succeed...
attempts = attempts + 1 attempts = attempts - 1
try: try:
pid = os.fork() pid = os.fork()
except os.error: except os.error:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment