diff options
-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; |