diff options
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/rc/unixcrap.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/cmd/rc/unixcrap.c b/src/cmd/rc/unixcrap.c index 3a4dd2c3..98660483 100644 --- a/src/cmd/rc/unixcrap.c +++ b/src/cmd/rc/unixcrap.c @@ -17,13 +17,29 @@ static int rlx[] = { RLIMIT_CORE, RLIMIT_DATA, RLIMIT_FSIZE, +#ifdef RLIMIT_MEMLOCK RLIMIT_MEMLOCK, +#else + 0, +#endif +#ifdef RLIMIT_RSS RLIMIT_RSS, +#else + 0, +#endif RLIMIT_NOFILE, RLIMIT_STACK, RLIMIT_CPU, +#ifdef RLIMIT_NPROC RLIMIT_NPROC, +#else + 0, +#endif +#ifdef RLIMIT_RSS RLIMIT_RSS, +#else + 0, +#endif }; static void |