From 861a236937268466f634392e6b300d349932fd96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Wed, 21 Apr 2021 15:39:14 +0200 Subject: [PATCH] Use SIGABRT instead of SIGKILL to produce cores on failed start When the `named` would hang on startup it would be killed with SIGKILL leaving us with no information about the state the process was in. This commit changes the start.pl script to send SIGABRT instead, so we can properly collect and process the coredump from the hung named process. --- bin/tests/system/start.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tests/system/start.pl b/bin/tests/system/start.pl index 791e65d56c..89807d0cd0 100755 --- a/bin/tests/system/start.pl +++ b/bin/tests/system/start.pl @@ -210,7 +210,7 @@ sub start_server { if (++$tries > 140) { print "I:$test:Couldn't start server $command (pid=$child)\n"; print "I:$test:failed\n"; - system "kill -9 $child" if ("$child" ne ""); + kill "ABRT", $child if ("$child" ne ""); chdir "$testdir"; system "$PERL $srcdir/stop.pl $test"; exit 1;