mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
48755ebf093543113de96747a7f5f78e0640b333
Dnsmasq needs to close all the file descriptors it inherits, for security reasons. This is traditionally done by calling close() on every possible file descriptor (most of which won't be open.) On big servers where "every possible file descriptor" is a rather large set, this gets rather slow, so we use the /proc/<pid>/fd directory to get a list of the fds which are acually open. This only works on Linux. On other platforms, and on Linux systems without a /proc filesystem, we fall back to the old way.
Description
No description provided
Languages
C
94.2%
Perl
2.3%
HTML
1.2%
Shell
1.1%
Makefile
0.6%
Other
0.6%