mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #4806 from willthames/async_not_multiple_of_5
Ensure async terminates when time limit is not divisible by 5
This commit is contained in:
commit
b87e0e598e
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ try:
|
|||
debug("%s still running (%s)"%(sub_pid, remaining))
|
||||
time.sleep(5)
|
||||
remaining = remaining - 5
|
||||
if remaining == 0:
|
||||
if remaining <= 0:
|
||||
debug("Now killing %s"%(sub_pid))
|
||||
os.killpg(sub_pid, signal.SIGKILL)
|
||||
debug("Sent kill to group %s"%sub_pid)
|
||||
|
|
Loading…
Reference in a new issue