fork/exec & close file descriptors

Marko Rauhamaa marko at pacujo.net
Tue Jun 2 11:28:02 EDT 2015


Skip Montanaro <skip.montanaro at gmail.com>:

>     os.closerange(fd_low, fd_high)
>     Close all file descriptors from fd_low (inclusive) to fd_high
>     (exclusive), ignoring errors.
>
> Guido's time machine strikes again...

The only problem is that you don't know how high you need to go in
general.


Marko



More information about the Python-list mailing list