summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2002-12-24 03:33:12 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2002-12-24 03:33:12 (GMT)
commita2a3cb23defa5e17a159982adac33e3dd58d8a93 (patch)
tree6b994e6e2673177a71752d80395c1176406b1e36 /Lib
parent11220fad1d7eee24f1d9809c6d5023875099cb37 (diff)
downloadcpython-a2a3cb23defa5e17a159982adac33e3dd58d8a93.zip
cpython-a2a3cb23defa5e17a159982adac33e3dd58d8a93.tar.gz
cpython-a2a3cb23defa5e17a159982adac33e3dd58d8a93.tar.bz2
IDLE should exit if it fails to connect with the execution server
subprocess. Currently it opens a dead shell window.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/PyShell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index d89802c..e3605ac 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -340,7 +340,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
+ ", retrying..."
else:
display_port_binding_error()
- return
+ sys.exit()
# Accept the connection from the Python execution server
self.rpcclt.accept()
self.rpcclt.register("stdin", self.tkconsole)