mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-23 02:28:55 +00:00
detect crash on shutdown in stop.pl
This commit is contained in:
parent
7b86c01d53
commit
9bf37f4e48
@ -236,7 +236,12 @@ sub clean_pid_file {
|
|||||||
|
|
||||||
return unless defined($pid);
|
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;
|
return $server;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user