display a warning message if the alarm handler (timeout) was triggered
authorWolfram Schneider <wosch@indexdata.dk>
Wed, 5 Nov 2014 09:53:22 +0000 (09:53 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Wed, 5 Nov 2014 09:53:22 +0000 (09:53 +0000)
test/bin/bomb.pl

index b91f049..1592161 100755 (executable)
@@ -56,6 +56,9 @@ if ($@) {
 $SIG{ALRM} = sub {
     my $pgid = getpgrp();
 
+    warn "Alarm handler got called after $timeout seconds\n";
+    warn "Kill now the process group...\n\n";
+
     # kill process group
     kill "INT", -$pgid;
 };