fix crash when forcing termination of subprocesses
This commit is contained in:
parent
aa3aef7be0
commit
5de7b77f04
@ -17,7 +17,7 @@ def exec_cmd(cmd, timeout=900, env = None):
|
||||
|
||||
try:
|
||||
out, err = proc.communicate(timeout=timeout)
|
||||
except subprocess.TimeoutExpired as err:
|
||||
except subprocess.TimeoutExpired as ex:
|
||||
log.error('Command "{}" timed out, killing it.'.format(' '.join(cmd)))
|
||||
proc.kill()
|
||||
time.sleep(30)
|
||||
|
Loading…
Reference in New Issue
Block a user