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 gregory.p.smith, meilyadam, paul.moore, r.david.murray, steve.dower, tim.golden, vstinner, zach.ware
Date 2015-09-10.19:12:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441912362.67.0.455415359281.issue24909@psf.upfronthosting.co.za>
In-reply-to
Content
> The one potential problem that I see is that it looks like specifying PROC_THREAD_ATTRIBUTE_HANDLE_LIST means that no other handles are inherited, even if they are inheritable.

We can maybe add a parameter to configure the behaviour: keep current behaviour by default in Python 3.6 and change the default in Python 3.7 for example.

> I could add Windows support for pass_fds, (...)

Yes, we need a new "pass_handles" parameter to pass a list of handles which will be explicitly inherited. This parameter is useful even if you inherit all inheritable handles, because handles can be non-inhertable too.

It's the same with pass_fds: if you pass a file descriptor in pass_fds, it will be marked as inheritable to be passed to the child.

I guess that "pass_handles" will be implemented with PROC_THREAD_ATTRIBUTE_HANDLE_LIST, or by making handles temporary inheritable if PROC_THREAD_ATTRIBUTE_HANDLE_LIST is not available.
History
Date User Action Args
2015-09-10 19:12:42vstinnersetrecipients: + vstinner, gregory.p.smith, paul.moore, tim.golden, r.david.murray, zach.ware, steve.dower, meilyadam
2015-09-10 19:12:42vstinnersetmessageid: <1441912362.67.0.455415359281.issue24909@psf.upfronthosting.co.za>
2015-09-10 19:12:42vstinnerlinkissue24909 messages
2015-09-10 19:12:42vstinnercreate