Gregory P. Smith added the comment: To remove the double close fd-reuse-window race condition you describe in 3.2.3 and later I don't think you even need to add that code snippet. Just get rid of the for loop calling os.close on those three fd's all together. self.stdin, self.stdout and self.stderr are already closed in the error case here:
http://hg.python.org/releasing/3.2.3/file/86d1421a552c/Lib/subprocess.py#l746 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16140> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com