X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=blobdiff_plain;f=gruntmaster-exec;h=d8028b8f4f2c5bf15f12c6625a604f480a840680;hp=bcde8d721321899e0f65cf317ecf8d3d697f4a7e;hb=97358afcd073f82ebe205ec2cd6e99e09da973af;hpb=16de3659fc10d654c8b8c9e660393c1f25eb85d0 diff --git a/gruntmaster-exec b/gruntmaster-exec index bcde8d7..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; @@ -87,7 +87,7 @@ if ($ret) { POSIX::close $oldfd or die $!; } } - my $nproc = $killuser ? 5 : 1; + my $nproc = $killuser ? 15 : 1; my $debug = $ENV{TEST_VERBOSE}; %ENV = (ONLINE_JUDGE => 1, PATH => $ENV{PATH}, HOME => $ENV{HOME}); setrlimit RLIMIT_AS, $mlimit, $mlimit or die $! if $mlimit;