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 Arfrever, chortos, pitrou, sbt, serhiy.storchaka, terry.reedy
Date 2013-10-03.14:15:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Well, perhaps we can special-case builtins not to be "wiped" at shutdown.
> However, there is another problem here in that the Popen object survives 
> until the builtins module is wiped. This should be investigated too.

Maybe it is because it uses the evil resuscitate-in-__del__ trick.  I 
presume that if the child process survives during shutdown, then the popen 
object is guaranteed to survive too.

We could get rid of the trick:

* On Windows __del__ is unneeded since we don't need to reap zombie 

* On Unix __del__ could just add self._pid (rather than self) to the list 
  _active.  _cleanup() would then use os.waitpid() to check the pids in 

The hardest thing about making such a change is that test_subprocess 
currently uses _active.
Date User Action Args
2013-10-03 14:15:20sbtsetrecipients: + sbt, terry.reedy, pitrou, Arfrever, chortos, serhiy.storchaka
2013-10-03 14:15:20sbtsetmessageid: <>
2013-10-03 14:15:20sbtlinkissue19021 messages
2013-10-03 14:15:20sbtcreate