use constant USER => 65534;
use constant GROUP => 65534;
-use BSD::Resource qw/setrlimit RLIMIT_AS RLIMIT_FSIZE/;
+use BSD::Resource qw/setrlimit RLIMIT_AS RLIMIT_FSIZE RLIMIT_NPROC/;
use IPC::Signal qw/sig_name sig_num/;
use sigtrap qw/XFSZ/;
%ENV = (ONLINE_JUDGE => 1, PATH => $ENV{PATH}, HOME => $ENV{HOME});
setrlimit RLIMIT_AS, $mlimit, $mlimit or die $! if $mlimit;
setrlimit RLIMIT_FSIZE, $olimit, $olimit or die $! if $olimit;
+ setrlimit RLIMIT_NPROC, 1, 1 or die $! if $nobody;
POSIX::setgid $nobody ? 65534 : USER;
POSIX::setuid $nobody ? 65534 : GROUP;
exec @ARGV;