emmanuel added the comment:

Kevin,

Indeed the code I submitted can be written entirely in C using pipe fork execl 
dup2 etc. as you suggest. The only purpose of mixing bash and C is to have a 
short self-contained file showing the problem.

Anyway, whether in C or bash the workaround is less than satisfying in that it 
uses up fds 0 1 2, and I have exactly the same goal and constraints as you.

Finally, thanks for identifying the limitation in the python implementation and 
submitting a patch. Like you I hope it will be eventually applied.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14916>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to