From 84597efb27c83c46704ba57f16738691ef4226e4 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Thu, 14 Feb 2019 16:16:01 +0000 Subject: Silence a warning from the helper script on OpenBSD. --- make/template/inspircd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'make/template') 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; -- cgit v1.2.3