libc: unistd: lib_getrlimit: set cur/max value for RLIMIT_NOFILE to "OPEN_MAX".
Signed-off-by: Takeyoshi Kikuchi <kikuchi@centurysys.co.jp>
This commit is contained in:
parent
c4fc414b09
commit
70ce4b4fc1
|
@ -60,8 +60,8 @@ int getrlimit(int resource, FAR struct rlimit *rlp)
|
||||||
{
|
{
|
||||||
case RLIMIT_NOFILE:
|
case RLIMIT_NOFILE:
|
||||||
{
|
{
|
||||||
rlp->rlim_cur = 128;
|
rlp->rlim_cur = OPEN_MAX;
|
||||||
rlp->rlim_max = INT_MAX; /* dummy */
|
rlp->rlim_max = OPEN_MAX;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue