[Idle-dev] CVS: idle run.py,1.16,1.17

Kurt B. Kaiser kbk@users.sourceforge.net
Wed, 14 May 2003 11:15:43 -0700


Update of /cvsroot/idlefork/idle
In directory sc8-pr-cvs1:/tmp/cvs-serv26762

Modified Files:
	run.py 
Log Message:
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 


Index: run.py
===================================================================
RCS file: /cvsroot/idlefork/idle/run.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** run.py	12 May 2003 02:33:47 -0000	1.16
--- run.py	14 May 2003 18:15:40 -0000	1.17
***************
*** 63,66 ****
--- 63,68 ----
              ret = method(*args, **kwargs)
              rpc.response_queue.put((seq, ret))
+         except KeyboardInterrupt:
+             continue
          except:
              print_exception()