From 0c23190956104cb62494e5b399bacd45ff2ca464 Mon Sep 17 00:00:00 2001 From: DjSlash Date: Fri, 18 Mar 2011 16:02:29 +0100 Subject: Fix for bug 116, in addition an improvement of the regex is made --- make/template/inspircd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'make') 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() { - /(\d+)/ and $pid = $1; + /^(\d+)$/ and $pid = $1; } close PIDFILE; return $pid; -- cgit v1.2.3