X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=blobdiff_plain;f=gruntmaster-exec;h=d8028b8f4f2c5bf15f12c6625a604f480a840680;hp=46ac491a674ebb1eb3672783e913d1f08e6d8a30;hb=97358afcd073f82ebe205ec2cd6e99e09da973af;hpb=d9ea4614aeddad7f8235a73ce3256bdce2b17811 diff --git a/gruntmaster-exec b/gruntmaster-exec index 46ac491..d8028b8 100755 --- a/gruntmaster-exec +++ b/gruntmaster-exec @@ -59,12 +59,12 @@ if ($ret) { } $tle = 1 }; - alarm ($timeout || 5); + alarm ($timeout || 10); waitpid $ret, 0; alarm 0; if (@sudo) { $? = $? >> 8; - $? = $? < 128 ? ($? << 8) : $? - 128; + $? = $? < 128 || $? > 128+32 ? ($? << 8) : $? - 128; } my $sig = $? & 127; my $signame = sig_name $sig;