Since there is no fully portable way how to list all open file descriptors, we
currently use /proc/self/fd or /dev/fd. If it fails, we close nothing. We (as a
fallback) try to get the maximum FD number and try to close all of them.
This only affects non-Linux distros.
Original issue reported on code.google.com by pud...@google.com on 15 Apr 2014 at 1:05
Original issue reported on code.google.com by
pud...@google.com
on 15 Apr 2014 at 1:05