fork/exec & close file descriptors

MrJean1 MrJean1 at gmail.com
Fri Jun 12 16:43:42 EDT 2015


The subprocess module uses upper bound MAXFD which is defined as

<code>
try:
    MAXFD = os.sysconf("SC_OPEN_MAX")
except:
    MAXFD = 256
</code>

/Jean



More information about the Python-list mailing list