This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Bernt.Røskar.Brenna, sbt, vstinner
Date 2013-11-28.01:40:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385602839.06.0.967155714269.issue19764@psf.upfronthosting.co.za>
In-reply-to
Content
UpdateProcThreadAttribute() documentation says that "... handles must be created as inheritable handles ..." and a comment says that "If using PROC_THREAD_ATTRIBUTE_HANDLE_LIST, pass TRUE to bInherit in CreateProcess. Otherwise, you will get an ERROR_INVALID_PARAMETER."

http://msdn.microsoft.com/en-us/library/windows/desktop/ms686880%28v=vs.85%29.aspx

Seriously? What is the purpose of PROC_THREAD_ATTRIBUTE_HANDLE_LIST if it does not avoid the race condition? It's "just" to not inherit some inheritable handles? In Python 3.4, files and sockets are created non-inheritable by default, so PROC_THREAD_ATTRIBUTE_HANDLE_LIST may not improve anything :-/
History
Date User Action Args
2013-11-28 01:40:39vstinnersetrecipients: + vstinner, Bernt.Røskar.Brenna, sbt
2013-11-28 01:40:39vstinnersetmessageid: <1385602839.06.0.967155714269.issue19764@psf.upfronthosting.co.za>
2013-11-28 01:40:39vstinnerlinkissue19764 messages
2013-11-28 01:40:38vstinnercreate