summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2003-05-14 18:15:40 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2003-05-14 18:15:40 (GMT)
commitaa6b856a427e7ce581a42e15aed9b3775c907c1a (patch)
tree30e96aa0d068f3c879e36f0b3f7bbdef2b396468
parentd8f21203b0ae9b69e84520d7fabe22ccfc9b4188 (diff)
downloadcpython-aa6b856a427e7ce581a42e15aed9b3775c907c1a.zip
cpython-aa6b856a427e7ce581a42e15aed9b3775c907c1a.tar.gz
cpython-aa6b856a427e7ce581a42e15aed9b3775c907c1a.tar.bz2
On Windows the subprocess was not exiting during a restart.
This bug, henceforth designated Freddy, was due to the mistaken elimination of the KeyboardInterrupt exception at the previous revision. PyShell's unix_terminate hammer was masking the problem on Linux. On W2K the subprocess MainThread was trying to print the exception after the SockThread had ceased to service the socket. The subprocess would then detach and spin when the GUI created the new subprocess. Modified Files: run.py
-rw-r--r--Lib/idlelib/run.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py
index e05be8f..ad23793 100644
--- a/Lib/idlelib/run.py
+++ b/Lib/idlelib/run.py
@@ -62,6 +62,8 @@ def main():
method, args, kwargs = request
ret = method(*args, **kwargs)
rpc.response_queue.put((seq, ret))
+ except KeyboardInterrupt:
+ continue
except:
print_exception()
rpc.response_queue.put((seq, None))