From 0a9f55a4b1492176355d7a75e08b979949b55f94 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Wed, 9 Apr 2014 23:53:10 +0300 Subject: [PATCH] Fix previous commit --- 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 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; -- 2.39.2