summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-28 00:42:08 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-28 00:42:08 +0000
commit83111e4f457cd7d82bbecceb86ccc377cd30707e (patch)
treea306db7048166c578f99d64271022b8c44363710 /etc
parent3d77d4c435e57cdf74e86ab4a18e87e218af5087 (diff)
downloadpfsense-83111e4f457cd7d82bbecceb86ccc377cd30707e.zip
pfsense-83111e4f457cd7d82bbecceb86ccc377cd30707e.tar.gz
unlink pid file after kill operation
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/util.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index 2502c56..7657c26 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -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}");
}
OpenPOWER on IntegriCloud