STINNER Victor added the comment: > It looks like the structure you reference to, > PROC_THREAD_ATTRIBUTE_HANDLE_LIST (STARTUPINFOEX), is only available in > Windows Vista and after. Which means that Windows XP/Server 2003 would still > have this issue.
Windows XP is no more supported in Python 3.5: https://docs.python.org/dev/whatsnew/3.5.html#unsupported-operating-systems For Windows Server 2003, yes, we will have to keep the current code which has the race condition. We did the same in the PEP 446 to clear the inherit flag. It's atomic or not depending on the function, on the operating system and even depending on the operating system version. So the PEP 446 doesn't fix all race conditions on old operating systems. https://www.python.org/dev/peps/pep-0446/#atomic-creation-of-non-inheritable-file-descriptors ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24909> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com