Not all systems support RLIMIT_NPROC and RLIMIT_RSS
This commit is contained in:
@@ -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 }
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user