From aa6b856a427e7ce581a42e15aed9b3775c907c1a Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Wed, 14 May 2003 18:15:40 +0000 Subject: 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 --- Lib/idlelib/run.py | 2 ++ 1 file changed, 2 insertions(+) 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)) -- cgit v0.12