cmdline: use soft/hard literals instead of def/max for rlimits

This commit is contained in:
Robert Swiecki 2017-10-07 22:36:21 +02:00
parent 5d4f42a729
commit dc2131cdd1

View File

@ -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,