fork/exec & close file descriptors

Skip Montanaro skip.montanaro at gmail.com
Tue May 19 10:31:14 EDT 2015


On Tue, May 19, 2015 at 8:54 AM, Chris Angelico <rosuav at gmail.com> wrote:

> On Linux (and possibly some other Unixes), /proc/self/fd may be of
> use.
>

Good point. Yes, /proc/PID/fd appears to contain all the entries for open
file descriptors (I am on Linux).

Skip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150519/f0e77ce0/attachment.html>


More information about the Python-list mailing list