Message230075
> 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. |
|
Date |
User |
Action |
Args |
2014-10-27 14:48:18 | vstinner | set | recipients:
+ vstinner, pitrou, r.david.murray, bukzor |
2014-10-27 14:48:18 | vstinner | set | messageid: <1414421298.92.0.617520866078.issue22722@psf.upfronthosting.co.za> |
2014-10-27 14:48:18 | vstinner | link | issue22722 messages |
2014-10-27 14:48:18 | vstinner | create | |
|