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.13.6~17^2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=9bf37f4e4847b656ed408d76222beebc1638a069;p=thirdparty%2Fbind9.git detect crash on shutdown in stop.pl --- 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; }