[issue12540] "Restart Shell" command leaves pythonw.exe processes running
Eli Bendersky
report at bugs.python.org
Sat Jul 23 08:45:06 CEST 2011
Eli Bendersky <eliben at gmail.com> added the comment:
Am I missing something, or is there no explicit command to kill the subprocess on Windows in PyShell.py
The kill_subprocess method (which does get invoked) of ModifiedInterpreter is:
def kill_subprocess(self):
try:
self.rpcclt.close()
except AttributeError: # no socket
pass
self.unix_terminate()
self.tkconsole.executing = False
self.rpcclt = None
The subprocess is started with:
self.rpcpid = os.spawnv(os.P_NOWAIT, sys.executable, args)
Could it be that in earlier versions this ensured the subprocess exited with its parent, but this somehow got modified?
Note that the same code existed in PyShell.py for ages, so it's unlikely that the culprit is there.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12540>
_______________________________________
More information about the Python-bugs-list
mailing list