[Python-Dev] Re: [ python-Bugs-1048808 ] test_subprocess 2.4b1 fails on FreeBSD 5.2 (original) (raw)
Peter Astrand astrand at lysator.liu.se
Wed Oct 20 20:19:58 CEST 2004
- Previous message: [Python-Dev] Paid Research Project on Stackless 3.1
- Next message: [Python-Dev] audiotest.au and possible copyright issues?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Previous message: [Python-Dev] Paid Research Project on Stackless 3.1
- Next message: [Python-Dev] audiotest.au and possible copyright issues?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]