If we do not have a process file there is no hope we can ever kill anything.

Remove this bogus attempt, silence the mwexec kill
This commit is contained in:
Seth Mos 2008-11-06 14:50:46 +00:00
parent 938b8ebfe5
commit d2c97ea194

View File

@ -38,9 +38,7 @@ function killbypid($pidfile) {
function sigkillbypid($pidfile, $sig) {
if (file_exists($pidfile)) {
$pid = trim(file_get_contents($pidfile));
mwexec("/bin/kill -s $sig {$pid}");
} else {
mwexec("/bin/kill -s $sig {$pidfile}");
mwexec("/bin/kill -s $sig {$pid}", true);
}
}