projects
/
gruntmaster-daemon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
01d5951
)
Disable mlimit when running under sudo
author
Marius Gavrilescu
<marius@ieval.ro>
Tue, 3 Feb 2015 16:15:51 +0000
(18:15 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Tue, 3 Feb 2015 16:15:51 +0000
(18:15 +0200)
gruntmaster-exec
patch
|
blob
|
blame
|
history
diff --git
a/gruntmaster-exec
b/gruntmaster-exec
index 25a44d16f48f8635b58868a9f2c9695dab7caf45..5a2773a7fc280eaa97b2290d0a0fa3b94ce6e918 100755
(executable)
--- 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;
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) {
my $ret = fork // die 'Cannot fork';
if ($ret) {
This page took
0.010562 seconds
and
4
git commands to generate.