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 emmanuel
Recipients Kevin.Barry, emmanuel, vstinner
Date 2013-03-17.22:47:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1363560468.36.0.273599993923.issue14916@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-03-17 22:47:48emmanuelsetrecipients: + emmanuel, vstinner, Kevin.Barry
2013-03-17 22:47:48emmanuelsetmessageid: <1363560468.36.0.273599993923.issue14916@psf.upfronthosting.co.za>
2013-03-17 22:47:48emmanuellinkissue14916 messages
2013-03-17 22:47:48emmanuelcreate