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 anissen
Recipients anissen, astrand, djmitche
Date 2008-05-13.23:09:08
SpamBayes Score 0.025955418
Marked as misclassified No
Message-id <1210720154.64.0.953496874664.issue1187@psf.upfronthosting.co.za>
In-reply-to
Content
In reference to Dustin's entry: That's the point; the expected behavior
is that subprocess should write data to the named files, without the
fix, it doesn't.  With the subprocess module as it stands, there are a
number of cases that will not behave as the user expects.  There were
two issues that were being addressed:

1) If a user passes in a file descriptor that is in the range 0-2, the
dup2 calls end up closing the file being passed in.

2) The other issue is the close code could end up closing file
descriptors it really shouldn't.  For example if p2cread == 1, the code
ends up closing the fd even though it really probably shouldn't.  On a
side note, I should have used a list for dup_fds instead of a dictionary.

It's been a while and I've not spent a huge amount of time getting back
up to speed; if there are any questions let me know and I'll spend some
more time on this.
History
Date User Action Args
2008-05-13 23:09:15anissensetspambayes_score: 0.0259554 -> 0.025955418
recipients: + anissen, astrand, djmitche
2008-05-13 23:09:14anissensetspambayes_score: 0.0259554 -> 0.0259554
messageid: <1210720154.64.0.953496874664.issue1187@psf.upfronthosting.co.za>
2008-05-13 23:09:13anissenlinkissue1187 messages
2008-05-13 23:09:11anissencreate