diff options
author | Ermal <eri@pfsense.org> | 2012-12-28 14:14:55 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-12-28 14:14:55 +0000 |
commit | ac94ebd828f33f09f07ca1a5ffa24ffc0c6db2f4 (patch) | |
tree | 8656253e2cf1dbeb69e58f2646fae79563a395b1 /etc/inc/util.inc | |
parent | 84b324074bb18d917066d523e410e54d5c8628a4 (diff) | |
download | pfsense-ac94ebd828f33f09f07ca1a5ffa24ffc0c6db2f4.zip pfsense-ac94ebd828f33f09f07ca1a5ffa24ffc0c6db2f4.tar.gz |
Just check the file_exists let pkill decide if its a vaild file or not.
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r-- | etc/inc/util.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 81f2dc4..a86fe92 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -62,7 +62,7 @@ function isvalidproc($proc) { /* sigkill a process by pid file */ /* return 1 for success and 0 for a failure */ function sigkillbypid($pidfile, $sig) { - if (is_file($pidfile)) + if (file_exists($pidfile)) return mwexec("/bin/pkill -{$sig} -F {$pidfile}", true); return 0; |