subprocess.call now requires a keyword argument of timeout in Python 3
@@ -97,6 +97,9 @@ def kill_process(process):
kill_command = shlex.split('sudo pkill -TERM -s %s' % (process.pid))
try:
+ if six.PY3:
+ status = subprocess.call(kill_command, timeout=100)
+ else:
status = subprocess.call(kill_command)
except Exception:
LOG.exception('Unable to pkill process.')
