]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
disable the check for crash on shutdown when running under cygwin
authorEvan Hunt <each@isc.org>
Fri, 1 Feb 2019 05:35:08 +0000 (21:35 -0800)
committerEvan Hunt <each@isc.org>
Fri, 1 Feb 2019 06:56:17 +0000 (22:56 -0800)
(cherry picked from commit 449842e1ce09c76dc108756e9deb8620a6263acd)

bin/tests/system/stop.pl

index 0008162e7c4fa7b492e7a70bc32c0b548790d1bf..06ebf61a8903e9633ef3d7cc9de7bd4a8bb19eca 100644 (file)
@@ -238,8 +238,12 @@ sub clean_pid_file {
 
        # If we're here, the PID file hasn't been cleaned up yet
        if (send_signal(0, $pid) == 0) {
-               print "I:$test:$server crashed on shutdown\n";
-               $errors = 1;
+               # XXX: on windows this is likely to result in a
+               # false positive, so don't bother reporting the error.
+               if ($ENV{'CYGWIN'} eq "") {
+                       print "I:$test:$server crashed on shutdown\n";
+                       $errors = 1;
+               }
                return;
        }