summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-11-06 14:50:46 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-11-06 14:50:46 +0000
commitd2c97ea1941c733776c040f2143fead617865a67 (patch)
tree0739f6ba765570b1185dfde06a3324f95e4546d6 /etc
parent938b8ebfe523edb70a25c588aef82bb637f63f01 (diff)
downloadpfsense-d2c97ea1941c733776c040f2143fead617865a67.zip
pfsense-d2c97ea1941c733776c040f2143fead617865a67.tar.gz
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
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/util.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index 6ac19f2..0687cda 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -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);
}
}
OpenPOWER on IntegriCloud