mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
938b8ebfe5
commit
d2c97ea194
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user