summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/run.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2003-02-17 18:57:16 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2003-02-17 18:57:16 (GMT)
commit003091cd51c5278e3ef76b6db01bd719b8b1c416 (patch)
treeafc0ea2b00d259d40f2eebd7beb33bd96a4b9eba /Lib/idlelib/run.py
parentf927f14edab27b128b1962314c1cf7c10be73ac5 (diff)
downloadcpython-003091cd51c5278e3ef76b6db01bd719b8b1c416.zip
cpython-003091cd51c5278e3ef76b6db01bd719b8b1c416.tar.gz
cpython-003091cd51c5278e3ef76b6db01bd719b8b1c416.tar.bz2
M NEWS.txt
M PyShell.py M ScriptBinding.py M rpc.py M run.py Clean up the way IDLEfork handles termination of the subprocess, restore ability to interrupt user code in Windows (so long as it's doing terminal I/O). 1. Handle subprocess interrupts in Windows with an RPC message. 2. Run/F5 will restart the subprocess even if user code is running. 3. Restart the subprocess if the link is dropped. 4. Exit IDLE cleanly even during I/O. 4. In rpc.py, remove explicit calls to statelock, let the condition variable handle acquire() and release().
Diffstat (limited to 'Lib/idlelib/run.py')
-rw-r--r--Lib/idlelib/run.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py
index f394bac..06fc049 100644
--- a/Lib/idlelib/run.py
+++ b/Lib/idlelib/run.py
@@ -71,6 +71,11 @@ class Executive:
def runcode(self, code):
exec code in self.locals
+ def interrupt_the_server(self):
+ # XXX KBK 05Feb03 Windows requires this be done with messages and
+ # threads....
+ self.rpchandler.interrupted = True
+
def start_the_debugger(self, gui_adap_oid):
return RemoteDebugger.start_debugger(self.rpchandler, gui_adap_oid)