summaryrefslogtreecommitdiffstats
path: root/etc/inc/util.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-28 21:33:18 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-28 21:33:18 +0000
commit9d59c08fbee06847b1f3c4bc70f5d7b4874abdf4 (patch)
tree07ca69ad475605c4490afec9026327f5c4065e65 /etc/inc/util.inc
parentda3c3c8639ac18bc9961f342fd62475e1d9e90f2 (diff)
downloadpfsense-9d59c08fbee06847b1f3c4bc70f5d7b4874abdf4.zip
pfsense-9d59c08fbee06847b1f3c4bc70f5d7b4874abdf4.tar.gz
Trim the contents when reading in
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r--etc/inc/util.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index 7657c26..99f4f62 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -37,7 +37,7 @@ function killbypid($pidfile) {
/* sigkill a process by pid file */
function sigkillbypid($pidfile, $sig) {
if (file_exists($pidfile)) {
- $pid = file_get_contents($pidfile);
+ $pid = trim(file_get_contents($pidfile));
mwexec("/bin/kill -s $sig {$pid}");
unlink_if_exists($pidfile);
} else {
OpenPOWER on IntegriCloud