diff options
author | DjSlash <djslash@djslash.org> | 2011-03-18 16:02:29 +0100 |
---|---|---|
committer | DjSlash <djslash@djslash.org> | 2011-03-18 16:04:17 +0100 |
commit | 0c23190956104cb62494e5b399bacd45ff2ca464 (patch) | |
tree | 2dad3ed8ff7ee96a4367ffae878d0bfd426bdcbc /make/template | |
parent | 70cd4a5a06ea4251ca128636e17bf5ff385f9b5b (diff) |
Fix for bug 116, in addition an improvement of the regex is made
Diffstat (limited to 'make/template')
-rw-r--r-- | make/template/inspircd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/make/template/inspircd b/make/template/inspircd index 1b9f25a86..d5e89040d 100644 --- a/make/template/inspircd +++ b/make/template/inspircd @@ -380,7 +380,7 @@ sub getpidfile sub getstatus { my $pid = getprocessid(); return 0 if $pid == 0; - return kill 0, $1; + return kill 0, $pid; } @@ -389,7 +389,7 @@ sub getprocessid { open PIDFILE, '<', $pidfile or return 0; while(<PIDFILE>) { - /(\d+)/ and $pid = $1; + /^(\d+)$/ and $pid = $1; } close PIDFILE; return $pid; |