mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-03 13:59:27 -04:00
The only function left in the isc_resource API was setting the file limit. Replace the whole unit with a simple getrlimit to check the maximum value of RLIMIT_NOFILE and set the maximum back to rlimit_cur. This is more compatible than trying to set RLIMIT_UNLIMITED on the RLIMIT_NOFILE as it doesn't work on Linux (see man 5 proc on /proc/sys/fs/nr_open), neither it does on Darwin kernel (see man 2 getrlimit). The only place where the maximum value could be raised under privileged user would be BSDs, but the `named_os_adjustnofile()` were not called there before. We would apply the increased limits only on Linux and Sun platforms. |
||
|---|---|---|
| .. | ||
| .clang-format | ||
| builtin.h | ||
| config.h | ||
| control.h | ||
| fuzz.h | ||
| geoip.h | ||
| globals.h | ||
| log.h | ||
| logconf.h | ||
| main.h | ||
| os.h | ||
| server.h | ||
| smf_globals.h | ||
| statschannel.h | ||
| tkeyconf.h | ||
| transportconf.h | ||
| tsigconf.h | ||
| types.h | ||
| zoneconf.h | ||