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 tim.golden
Recipients gjb1002, tim.golden
Date 2008-06-26.17:26:01
SpamBayes Score 0.008303116
Marked as misclassified No
Message-id <1214501163.62.0.916434448346.issue3210@psf.upfronthosting.co.za>
In-reply-to
Content
The attached file sp-3.py simulates what I think is happening within the
subprocess module. Note that the OS handle is duplicated to allow
inheritance and then left unclosed on failure. If it is explicitly
closed, the file can be removed.

There is no hope of closing the file handle since it was local to the
__init__ method which failed but was not closed before exit and is now
inaccessible.

On the surface, the obvious fix would be a try/except block around the
CreateProcess call (or its caller) which would then release whatever
handles were needed. I'll try to get the time to put a patch together,
but it would be useful to have confirmation of my theory.
History
Date User Action Args
2008-06-26 17:26:05tim.goldensetspambayes_score: 0.00830312 -> 0.008303116
recipients: + tim.golden, gjb1002
2008-06-26 17:26:03tim.goldensetspambayes_score: 0.00830312 -> 0.00830312
messageid: <1214501163.62.0.916434448346.issue3210@psf.upfronthosting.co.za>
2008-06-26 17:26:02tim.goldenlinkissue3210 messages
2008-06-26 17:26:02tim.goldencreate