From 91c5f4907ceef23443e58bfd5314fa0672a0ac6f Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Tue, 3 Feb 2015 18:15:51 +0200 Subject: [PATCH] Disable mlimit when running under sudo --- gruntmaster-exec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2