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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user