From: Marius Gavrilescu Date: Wed, 9 Apr 2014 20:53:10 +0000 (+0300) Subject: Fix previous commit X-Git-Tag: 5999.000_003~16 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=0a9f55a4b1492176355d7a75e08b979949b55f94;p=gruntmaster-daemon.git Fix previous commit --- diff --git a/lib/Gruntmaster/Daemon/Format.pm b/lib/Gruntmaster/Daemon/Format.pm index 6bd9a5e..bab6d97 100644 --- a/lib/Gruntmaster/Daemon/Format.pm +++ b/lib/Gruntmaster/Daemon/Format.pm @@ -50,7 +50,7 @@ sub mkrun{ die [TLE, "Time Limit Exceeded"] if $tle; die [OLE, 'Output Limit Exceeded'] if $sig && $signame eq 'XFSZ'; die [DIED, "Crash (SIG$signame)"] if $sig && $signame != 'PIPE'; - die [NZX, "Non-zero exit status: " . ($? >> 8)] if $?; + die [NZX, "Non-zero exit status: " . ($? >> 8)] if $? >> 8; } else { my @fds = exists $args{fds} ? @{$args{fds}} : (); $^F = 50;