From: Evan Hunt Date: Thu, 31 Jan 2019 01:12:40 +0000 (-0800) Subject: detect crash on shutdown in stop.pl X-Git-Tag: v9.12.4rc1~35^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab5feb57ef91414d21e8da47443a21852bb3b036;p=thirdparty%2Fbind9.git detect crash on shutdown in stop.pl (cherry picked from commit 9bf37f4e4847b656ed408d76222beebc1638a069) --- diff --git a/bin/tests/system/stop.pl b/bin/tests/system/stop.pl index 05093ceb2d8..0008162e7c4 100644 --- a/bin/tests/system/stop.pl +++ b/bin/tests/system/stop.pl @@ -236,7 +236,12 @@ sub clean_pid_file { return unless defined($pid); - return if (send_signal(0, $pid) == 0); + # 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; + return; + } return $server; }