How to close all files between fork and exec?

Harald Kirsch kirschh at lionbioscience.com
Thu Jan 18 02:42:05 EST 2001


Phil Mayers <p.mayers at obfuscate.ic.ac.uk> writes:

> 2) Use the sysconf module to get the "real" max open files. If there
> isn't a limit (stupid...) then go as high as you think is "reasonable"
> given the environment you're inheriting from.

Why stupid? I think its rather stupid not to know the highest open
file descriptor at any time. Well, but that's a UNIX design flaw and I
think I'll do like you propose.

Thanks,
  Harald Kirsch

-- 
----------------+------------------------------------------------------
Harald Kirsch   | kirschh at lionbioscience.com | "How old is the epsilon?"
LION Bioscience | +49 6221 4038 172          |        -- Paul Erdös
       *** Please do not send me copies of your posts. ***



More information about the Python-list mailing list