From: Kurt B. Kaiser Date: Wed, 14 May 2003 18:15:40 +0000 (+0000) Subject: On Windows the subprocess was not exiting during a restart. X-Git-Tag: v2.3c1~720 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa6b856a427e7ce581a42e15aed9b3775c907c1a;p=thirdparty%2FPython%2Fcpython.git 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 --- diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index e05be8f28ec2..ad23793c3d14 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))