[issue12196] add pipe2() to the os module

Ross Lagerwall report at bugs.python.org
Sat May 28 13:33:27 CEST 2011


Ross Lagerwall <rosslagerwall at gmail.com> added the comment:

>> Also, the pure python implementation of subprocess for posix can now >> be updated to use pipe2 if it exists (previously on _posixsubprocess.c
>> used it).

> I don't understand the last part :-)
> What do you suggest?

Perhaps, os.pipe2 can be used if available, then a modified version of _posixsubprocess.cloexec_pipe without the check for pipe2 could be used as a fallback.

I'm not sure why there exists both a python and c implementation.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12196>
_______________________________________


More information about the Python-bugs-list mailing list