projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d4f42a
)
cmdline: use soft/hard literals instead of def/max for rlimits
author
Robert Swiecki
<robert@swiecki.net>
Sat, 7 Oct 2017 20:36:21 +0000
(22:36 +0200)
committer
Robert Swiecki
<robert@swiecki.net>
Sat, 7 Oct 2017 20:36:21 +0000
(22:36 +0200)
cmdline.c
patch
|
blob
|
history
diff --git
a/cmdline.c
b/cmdline.c
index c9e719aef7b5a617e70526cf5a9924990290e590..cd3f29a64912772556f276e715aebbff4b7bd39c 100644
(file)
--- a/
cmdline.c
+++ b/
cmdline.c
@@
-329,8
+329,8
@@
bool cmdlineParse(int argc, char *argv[], struct nsjconf_t * nsjconf)
.rl_cpu = 600,
.rl_fsize = 1 * (1024 * 1024),
.rl_nofile = 32,
- .rl_nproc = cmdlineParseRLimit(RLIMIT_NPROC, "
def
", 1),
- .rl_stack = cmdlineParseRLimit(RLIMIT_STACK, "
def
", 1),
+ .rl_nproc = cmdlineParseRLimit(RLIMIT_NPROC, "
soft
", 1),
+ .rl_stack = cmdlineParseRLimit(RLIMIT_STACK, "
soft
", 1),
.personality = 0,
.clone_newnet = true,
.clone_newuser = true,