summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd2/cmd2.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 82afc286..2ad38f23 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -3894,13 +3894,6 @@ class Cmd(cmd.Cmd):
if callargs:
self.cmdqueue.extend(callargs)
- # Only the main thread is allowed to set a new signal handler in Python, so only attempt if that is the case
- if threading.current_thread() is threading.main_thread():
- # Register a SIGINT signal handler for Ctrl+C
- import signal
- original_sigint_handler = signal.getsignal(signal.SIGINT)
- signal.signal(signal.SIGINT, self.sigint_handler)
-
# Grab terminal lock before the prompt has been drawn by readline
self.terminal_lock.acquire()