From: Marius Gavrilescu Date: Fri, 6 Feb 2015 09:23:04 +0000 (+0200) Subject: Return NZX for return codes above 128+32 X-Git-Tag: 5999.000_005~55 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=74ab88697ef110b659d15e266649f162bc1c6103;p=gruntmaster-daemon.git Return NZX for return codes above 128+32 --- diff --git a/gruntmaster-exec b/gruntmaster-exec index 46ac491..9590b4e 100755 --- a/gruntmaster-exec +++ b/gruntmaster-exec @@ -64,7 +64,7 @@ if ($ret) { alarm 0; if (@sudo) { $? = $? >> 8; - $? = $? < 128 ? ($? << 8) : $? - 128; + $? = $? < 128 || $? > 128+32 ? ($? << 8) : $? - 128; } my $sig = $? & 127; my $signame = sig_name $sig;