mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
unlink pid file after kill operation
This commit is contained in:
parent
3d77d4c435
commit
83111e4f45
@ -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}");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user