On Wed, 20 Oct 2004, Ludovic Aubry wrote: > I would say it is not safe: > > f=file("hello") > from os import fork, execl > > if fork()!=0: > execl("python", "python" ) > > This leaves fd=3 open on linux Yes, but with the subprocess module and close_fds=True, subprocess explicitly closes all fds except 0,1,2, between fork and exec. I'm talking about the problem with the Python interpreter opening *new* files during startup. /Peter Åstrand <astrand at lysator.liu.se>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4