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

Fixed bug in fork attempt counting.

parent 7ac0c3c2
......@@ -159,7 +159,7 @@ def heartbeat():
def forkit(attempts = FORK_ATTEMPTS):
while attempts:
# if at first you don't succeed...
attempts = attempts + 1
attempts = attempts - 1
try:
pid = os.fork()
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