Use waitpid instead of wait in Format.pm
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 21 Apr 2014 16:46:49 +0000 (19:46 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 21 Apr 2014 16:46:49 +0000 (19:46 +0300)
lib/Gruntmaster/Daemon/Format.pm

index 5132fbd..2678906 100644 (file)
@@ -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;
This page took 0.027945 seconds and 4 git commands to generate.