Disable mlimit when running under sudo
[gruntmaster-daemon.git] / gruntmaster-exec
index 25a44d16f48f8635b58868a9f2c9695dab7caf45..5a2773a7fc280eaa97b2290d0a0fa3b94ce6e918 100755 (executable)
@@ -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) {
This page took 0.00933 seconds and 4 git commands to generate.