From: Marius Gavrilescu Date: Tue, 3 Feb 2015 16:15:51 +0000 (+0200) Subject: Disable mlimit when running under sudo X-Git-Tag: 5999.000_005~61 X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=commitdiff_plain;h=91c5f4907ceef23443e58bfd5314fa0672a0ac6f Disable mlimit when running under sudo --- diff --git a/gruntmaster-exec b/gruntmaster-exec index 25a44d1..5a2773a 100755 --- a/gruntmaster-exec +++ b/gruntmaster-exec @@ -46,7 +46,7 @@ GetOptions( my $killuser = $ENV{GRUNTMASTER_KILL_USER}; my @sudo; @sudo = (shellwords ($ENV{GRUNTMASTER_SUDO}), '--') if $ENV{GRUNTMASTER_SUDO} && $nobody; -$mlimit = 1_000_000_000 if @sudo; # sudo wants a lot of address space +undef $mlimit if @sudo; # sudo wants a lot of address space my $ret = fork // die 'Cannot fork'; if ($ret) {