20 Oct
2004
20 Oct
'04
6:19 p.m.
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