inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit 84597efb27c83c46704ba57f16738691ef4226e4
parent ebb3258ff477724e73abe861c3ff66f63da19e42
Author: Peter Powell <petpow@saberuk.com>
Date:   Thu, 14 Feb 2019 16:16:01 +0000

Silence a warning from the helper script on OpenBSD.

Diffstat:
Mmake/template/inspircd | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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