diff options
author | Ermal <eri@pfsense.org> | 2013-01-04 22:15:03 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-01-04 22:15:03 +0000 |
commit | 9ec91e36f7f138c38256a8735fc3379419d08c9f (patch) | |
tree | 4d30387285319f94be57f1a84e39922e7a3a5e59 /etc | |
parent | d9cdb3630c88766010e705db375dab67b36677e3 (diff) | |
download | pfsense-9ec91e36f7f138c38256a8735fc3379419d08c9f.zip pfsense-9ec91e36f7f138c38256a8735fc3379419d08c9f.tar.gz |
Merge: Just check the file_exists let pkill decide if its a vaild file or not.
Diffstat (limited to 'etc')
-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 0f8d78a..fd9eb3b 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; |