]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - make/template/inspircd
Silence a warning from the helper script on OpenBSD.
[user/henk/code/inspircd.git] / make / template / inspircd
index e860c70f82d854e441afdd626db0867e0762b02a..91b2694121f2ed05eb0079c56a3b1b129810decd 100644 (file)
@@ -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;