From 4f8a59c1bded7292bdac92830d4175c52bcf10dc 2008-03-12 11:07:01 From: vivainio2 Date: 2008-03-12 11:07:01 Subject: [PATCH] MTInteractiveShell.runsource() - return immediately if we are being killed (code would never get run -> deadlock) --- diff --git a/IPython/Shell.py b/IPython/Shell.py index 3d84f3c..77873af 100644 --- a/IPython/Shell.py +++ b/IPython/Shell.py @@ -384,6 +384,10 @@ class MTInteractiveShell(InteractiveShell): if KBINT: KBINT = False return False + + if self._kill: + # can't queue new code if we are being killed + return True try: code = self.compile(source, filename, symbol)