1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 22:36:38 +02:00

Merge pull request #1163 from fornwall/replace-getdtablesize

Replace getdtablesize() with sysconf(_SC_OPEN_MAX)
This commit is contained in:
Sébastien Helleu
2018-03-19 21:22:48 +01:00
committed by GitHub
+1 -1
View File
@@ -72,7 +72,7 @@ daemonize ()
setsid ();
/* close all file descriptors */
for (i = getdtablesize(); i >= 0; --i)
for (i = sysconf(_SC_OPEN_MAX); i >= 0; --i)
{
close (i);
}