You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
502 B

iff --git a/lib-src/getdtablesize.c b/lib-src/getdtablesize.c
index 417f127f..a4764235 100644
--- a/lib-src/getdtablesize.c
+++ b/lib-src/getdtablesize.c
@@ -78,14 +78,5 @@ getdtablesize(void)
int tableSize = -1;
#endif
-#ifdef RLIMIT_NOFILE /* who is non POSIX but has this? */
- struct rlimit res;
- if (tableSize >= 0)
- return tableSize;
-
- if (getrlimit(RLIMIT_NOFILE, &rlimit) != -1)
- tableSize = rlimit.rlim_max;
-#endif
-
if (tableSize >= 0)
return tableSize;