summaryrefslogtreecommitdiff
path: root/make/template
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-02-14 16:16:01 +0000
committerPeter Powell <petpow@saberuk.com>2019-02-14 16:16:01 +0000
commit84597efb27c83c46704ba57f16738691ef4226e4 (patch)
tree4fff5842728a7694ceac913a7c74c7c681f01c27 /make/template
parentebb3258ff477724e73abe861c3ff66f63da19e42 (diff)
Silence a warning from the helper script on OpenBSD.
Diffstat (limited to 'make/template')
-rw-r--r--make/template/inspircd2
1 files changed, 1 insertions, 1 deletions
diff --git a/make/template/inspircd b/make/template/inspircd
index e860c70f8..91b269412 100644
--- a/make/template/inspircd
+++ b/make/template/inspircd
@@ -312,7 +312,7 @@ sub cmd_stop()
# Get to here, we have something to kill.
my $pid = getprocessid();
print "Stopping InspIRCd (pid: $pid)...\n";
- my $maxwait = (`ps -o command $pid` =~ /valgrind/i) ? 90 : 15;
+ my $maxwait = (`ps -o command $pid 2>/dev/null` =~ /valgrind/i) ? 90 : 15;
kill TERM => $pid or die "Cannot terminate IRCd: $!\n";
for (1..$maxwait) {
sleep 1;