Arun Prakash Jana
il y a 8 ans
Parent
révision
16f0054b48
Aucune clé connue n'a été trouvée dans la base pour cette signature
ID de la clé GPG: A75979F35C080412
1 fichiers modifiés avec
2 ajouts et
4 suppressions
-
nnn.c
|
|
@@ -245,11 +245,9 @@ max_openfds() |
|
|
|
limit = rl.rlim_cur; |
|
|
|
rl.rlim_cur = rl.rlim_max; |
|
|
|
|
|
|
|
/* Return ~75% of max possible */ |
|
|
|
if (setrlimit(RLIMIT_NOFILE, &rl) == 0) |
|
|
|
return rl.rlim_max - 64; |
|
|
|
|
|
|
|
if (limit > 128) |
|
|
|
return limit - 64; |
|
|
|
return (rl.rlim_max - (rl.rlim_max >> 2)); |
|
|
|
|
|
|
|
return 32; |
|
|
|
} |
|
|
|