From b3f845d397437ed632d409cd665d4de01cde59cd Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Mon, 21 Apr 2014 19:46:49 +0300 Subject: [PATCH] Use waitpid instead of wait in Format.pm --- lib/Gruntmaster/Daemon/Format.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Gruntmaster/Daemon/Format.pm b/lib/Gruntmaster/Daemon/Format.pm index 5132fbd..2678906 100644 --- a/lib/Gruntmaster/Daemon/Format.pm +++ b/lib/Gruntmaster/Daemon/Format.pm @@ -45,7 +45,7 @@ sub mkrun{ my $tle; local $SIG{ALRM} = sub { kill KILL => $ret; $tle = 1}; alarm $args{timeout} if exists $args{timeout}; - wait; + waitpid $ret, 0; alarm 0; my $sig = $? & 127; my $signame = sig_name $sig; -- 2.39.2