@cgwalters I took a look at glib implementation, they make use of `fdwalk()` if
available (it's a function unique to SunOS/Solaris AFAICS), and reimplement it
using /proc/self/fd if not (which is the case for Linux). This seems to be an
unnecessary complication (unless we care much about Solaris).
One other thing is, they call `getrlimit(RLIMIT_NOFILE, &rl)` and use
`rl.rlim_max` which seems to be a mistake -- `rlim_cur` should be used. But
since this code is only used when /proc is not available it's probably nothing.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
Rpm-maint mailing list