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 bukzor, pitrou, r.david.murray, vstinner
Date 2014-10-27.14:48:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1414421298.92.0.617520866078.issue22722@psf.upfronthosting.co.za>
In-reply-to
Content
> Would it be acceptable to implement a pipe2 shim for those platforms?

If I understand correctly, you propose to add an option inheritable parameter to os.pipe():

def os.pipe(inheritable=False):
    ...

The PEP 446 was written to fix race conditions. os.pipe(inheritable=True) would create a race condition if another thread calls fork().

What is your use case? Please elaborate.

The subprocess module makes "pass_fds" file descriptors inheritables in a safe way.
History
Date User Action Args
2014-10-27 14:48:18vstinnersetrecipients: + vstinner, pitrou, r.david.murray, bukzor
2014-10-27 14:48:18vstinnersetmessageid: <1414421298.92.0.617520866078.issue22722@psf.upfronthosting.co.za>
2014-10-27 14:48:18vstinnerlinkissue22722 messages
2014-10-27 14:48:18vstinnercreate