Not all systems support RLIMIT_NPROC and RLIMIT_RSS

This commit is contained in:
Todd C. Miller
2019-10-21 16:03:10 -06:00
parent 8ea71f9ae0
commit 5391ee2d5e

View File

@@ -52,8 +52,12 @@ static struct saved_limit {
{ RLIMIT_DATA },
{ RLIMIT_FSIZE },
{ RLIMIT_NOFILE },
#ifdef RLIMIT_NPROC
{ RLIMIT_NPROC },
#endif
#ifdef RLIMIT_RSS
{ RLIMIT_RSS },
#endif
{ RLIMIT_STACK }
};