Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: fork/exec & close file descriptors Date: Tue, 02 Jun 2015 18:28:02 +0300 Organization: A noiseless patient Spider Lines: 13 Message-ID: <87lhg26sfx.fsf@elektro.pacujo.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="b7cb1518d23ec19d482dcc9c31d30fdd"; logging-data="17764"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19gC5zD3yBgCVlMCH8725PQ" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:8CvedyvgaY11c6ssBEoDOI8oUa4= sha1:Ujx4tOTqt1QqHj063UtRqo5BTBY= Xref: csiph.com comp.lang.python:91850 Skip Montanaro : > 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