From bc574e44244a984d51bf5aa9de3df27d1f277777 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Wed, 5 Nov 2014 09:53:22 +0000 Subject: [PATCH] display a warning message if the alarm handler (timeout) was triggered --- test/bin/bomb.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/bin/bomb.pl b/test/bin/bomb.pl index b91f049..1592161 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; }; -- 1.7.10.4