Message198897
> 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
processes.
* 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
_active.
The hardest thing about making such a change is that test_subprocess
currently uses _active. |
|
Date |
User |
Action |
Args |
2013-10-03 14:15:20 | sbt | set | recipients:
+ sbt, terry.reedy, pitrou, Arfrever, chortos, serhiy.storchaka |
2013-10-03 14:15:20 | sbt | set | messageid: <1380809720.72.0.689084249718.issue19021@psf.upfronthosting.co.za> |
2013-10-03 14:15:20 | sbt | link | issue19021 messages |
2013-10-03 14:15:20 | sbt | create | |
|