From: Marius Gavrilescu Date: Wed, 11 Mar 2015 20:51:03 +0000 (+0200) Subject: Ignore SIGPIPE *only* for user programs X-Git-Tag: 5999.000_005~24 X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=commitdiff_plain;h=5738d1dcc0e4af406b1bc14c23af9c6e53ba259c;hp=9423cd14d8162ae5322bc00fee7c823ef7c2511c;ds=sidebyside Ignore SIGPIPE *only* for user programs --- diff --git a/gruntmaster-exec b/gruntmaster-exec index 6d53812..b6577f4 100755 --- a/gruntmaster-exec +++ b/gruntmaster-exec @@ -66,7 +66,7 @@ if ($ret) { my $signame = sig_name $sig; exit !say TLE, "\nTime Limit Exceeded" if $tle; exit !say OLE, "\nOutput Limit Exceeded" if $sig && $signame eq 'XFSZ'; - exit !say DIED, "\nCrash (SIG$signame)" if $sig && ($signame ne 'PIPE' || $ARGV[0] =~ /prog/); + exit !say DIED, "\nCrash (SIG$signame)" if $sig && ($signame ne 'PIPE' || $ARGV[0] !~ /prog/); exit !say NZX, "\nNon-zero exit status: " . ($? >> 8) if $? >> 8; exit !say AC, "\nAll OK"; } else {