X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=test%2Fbin%2Fbomb.pl;h=94c14cde87b63a8d2dcb22665528fb304095955c;hb=a4b84ad26f64fd8aeb3d2db408585291c1b26d48;hp=b91f0499c68337651af9dce0788fb3598de68916;hpb=238734efd7a190c653631ac2db4624c6761df8ec;p=mkws-moved-to-github.git diff --git a/test/bin/bomb.pl b/test/bin/bomb.pl index b91f049..94c14cd 100755 --- a/test/bin/bomb.pl +++ b/test/bin/bomb.pl @@ -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; }; @@ -66,7 +69,7 @@ $SIG{INT} = "IGNORE"; alarm($timeout); system(@system) == 0 - or die "system @system failed: $?"; + or die "system('@system') failed: ?='$?', !='$!', ^E='$^E'\n"; 1;