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 sbt
Recipients Bernt.Røskar.Brenna, gps, neologix, r.david.murray, sbt, tim.golden
Date 2013-11-14.18:20:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1384453205.8.0.834616105921.issue19575@psf.upfronthosting.co.za>
In-reply-to
Content
Note that on Windows if you redirect the standard streams then *all* inheritable handles are inherited by the child process.

Presumably the handle for f_w file object (and/or a duplicate of it) created in one thread is accidentally "leaked" to the other child process.  This means that shutil.rmtree() cannot succeed until *both* child processes have exited.

PEP 446 might fix this, although there will still be a race condition.
History
Date User Action Args
2013-11-14 18:20:05sbtsetrecipients: + sbt, gps, tim.golden, r.david.murray, Bernt.Røskar.Brenna, neologix
2013-11-14 18:20:05sbtsetmessageid: <1384453205.8.0.834616105921.issue19575@psf.upfronthosting.co.za>
2013-11-14 18:20:05sbtlinkissue19575 messages
2013-11-14 18:20:05sbtcreate