mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 15:39:59 -04:00
Merge branch '850-catch-shutdown-aborts' into 'master'
detect crash on shutdown in stop.pl Closes #850 See merge request isc-projects/bind9!1435
This commit is contained in:
commit
41d79f054d
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue