Commit 1d8549b2 authored by Rafael Monnerat's avatar Rafael Monnerat

apache_mpm_watchdog: Use psutil API to kill.

parent d070a9f8
......@@ -57,7 +57,11 @@ def watchServerStatus(pid_dict, server_status, timeout):
_pid_dict.setdefault(i, time.time() + timeout)
if _pid_dict[i] < time.time():
print "Sending signal -%s to %s" % (signal.SIGKILL, i)
os.kill(int(i), signal.SIGKILL)
try:
process.kill()
except psutil.NoSuchProcess:
print "Process is not there anymore"
continue
return _pid_dict
......
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