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)