How to close all files between fork and exec?

Russ Allbery rra at stanford.edu
Thu Jan 18 12:13:19 EST 2001


In comp.unix.programmer, Andrew Gierth <andrew at erlenstar.demon.co.uk> writes:
>>>>>> "Donn" == Donn Cave <donn at u.washington.edu> writes:

>  Donn> Unfortunately it looks to me like no one has ever put
>  Donn> getdtablesize() in Python.

> does it have sysconf(_SC_OPEN_MAX)?

BTW, in the pointless portability department, getrlimit returns more
accurate results than sysconf on some patched Linux kernels (INN therefore
tries getrlimit first).

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>



More information about the Python-list mailing list