Assume RLIMIT_NOFILE is defined
It is required by POSIX.1-2001. Cc: Christian Göttsche <cgzones@googlemail.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
committed by
Serge Hallyn
parent
5ebf28c999
commit
c916715a6c
@ -37,9 +37,7 @@ void pwd_init (void)
|
||||
setrlimit (RLIMIT_CPU, &rlim);
|
||||
setrlimit (RLIMIT_DATA, &rlim);
|
||||
setrlimit (RLIMIT_FSIZE, &rlim);
|
||||
#ifdef RLIMIT_NOFILE
|
||||
setrlimit (RLIMIT_NOFILE, &rlim);
|
||||
#endif
|
||||
#ifdef RLIMIT_RSS
|
||||
setrlimit (RLIMIT_RSS, &rlim);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user