unlink pid file after kill operation

This commit is contained in:
Scott Ullrich 2005-11-28 00:42:08 +00:00
parent 3d77d4c435
commit 83111e4f45

View File

@ -39,6 +39,7 @@ function sigkillbypid($pidfile, $sig) {
if (file_exists($pidfile)) {
$pid = file_get_contents($pidfile);
mwexec("/bin/kill -s $sig {$pid}");
unlink_if_exists($pidfile);
} else {
mwexec("/bin/kill -s $sig {$pidfile}");
}