]> granicus.if.org Git - python/commitdiff
On Windows the subprocess was not exiting during a restart.
authorKurt B. Kaiser <kbk@shore.net>
Wed, 14 May 2003 18:15:40 +0000 (18:15 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Wed, 14 May 2003 18:15:40 +0000 (18:15 +0000)
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

index e05be8f28ec25d055750250b3b4ef319fc133028..ad23793c3d14b77e470f964ab450c8bcedfd73c3 100644 (file)
@@ -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))