diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-11-06 14:50:46 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-11-06 14:50:46 +0000 |
commit | d2c97ea1941c733776c040f2143fead617865a67 (patch) | |
tree | 0739f6ba765570b1185dfde06a3324f95e4546d6 /etc | |
parent | 938b8ebfe523edb70a25c588aef82bb637f63f01 (diff) | |
download | pfsense-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.inc | 4 |
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); } } |