[issue7213] Popen.subprocess change close_fds default to True

Milko Krachounov report at bugs.python.org
Fri Dec 10 20:44:30 CET 2010


Milko Krachounov <python at milko.3mhz.net> added the comment:

> I'm +1 on it, but I think it should be the default; instead, 
> your proposed patch adds a new argument to the public API. Why do you 
> think it's necessary to do so?

I don't think it's necessary. I put it there because when I was testing I thought it might help. For example, you might want to keep the pipes open and then open another process with close_fds=False, thus changing the current default might cause some regressions in some software and an argument would allow an easier transition. I updated the patch removing anything unnecessary. Though it still has a huge race when used with threading.

----------
Added file: http://bugs.python.org/file20000/subprocess-cloexec-py3k.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7213>
_______________________________________


More information about the Python-bugs-list mailing list