Commit b87e0e59 by Michael DeHaan

Merge pull request #4806 from willthames/async_not_multiple_of_5

Ensure async terminates when time limit is not divisible by 5
parents 8e105bbf 723af8c3
...@@ -180,7 +180,7 @@ try: ...@@ -180,7 +180,7 @@ try:
debug("%s still running (%s)"%(sub_pid, remaining)) debug("%s still running (%s)"%(sub_pid, remaining))
time.sleep(5) time.sleep(5)
remaining = remaining - 5 remaining = remaining - 5
if remaining == 0: if remaining <= 0:
debug("Now killing %s"%(sub_pid)) debug("Now killing %s"%(sub_pid))
os.killpg(sub_pid, signal.SIGKILL) os.killpg(sub_pid, signal.SIGKILL)
debug("Sent kill to group %s"%sub_pid) debug("Sent kill to group %s"%sub_pid)
......
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