On platforms without closefrom() try to find out the
highest open fd by reading /proc/`getpid`/fd directory. If it fails we fall back to sysconf(_SC_OPEN_MAX) as usual.
Showing
Please register or sign in to comment
highest open fd by reading /proc/`getpid`/fd directory. If it fails we fall back to sysconf(_SC_OPEN_MAX) as usual.