mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
salt/utils/process.py: fix order of args to os.kill()
Fixes: #15269 Signed-off-by: Dan Mick <dan.mick@inktank.com>
This commit is contained in:
parent
9acf13bf39
commit
1c4c63428b
@ -89,7 +89,7 @@ def clean_proc(proc, wait_for_kill=10):
|
||||
proc.pid
|
||||
)
|
||||
)
|
||||
os.kill(signal.SIGKILL, proc.pid)
|
||||
os.kill(proc.pid, signal.SIGKILL)
|
||||
except (AssertionError, AttributeError):
|
||||
# Catch AssertionError when the proc is evaluated inside the child
|
||||
# Catch AttributeError when the process dies between proc.is_alive()
|
||||
|
Loading…
Reference in New Issue
Block a user