We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf37cf0 commit 5fce40bCopy full SHA for 5fce40b
cmd2/cmd2.py
@@ -3894,13 +3894,6 @@ def cmdloop(self, intro: Optional[str] = None) -> None:
3894
if callargs:
3895
self.cmdqueue.extend(callargs)
3896
3897
- # Only the main thread is allowed to set a new signal handler in Python, so only attempt if that is the case
3898
- if threading.current_thread() is threading.main_thread():
3899
- # Register a SIGINT signal handler for Ctrl+C
3900
- import signal
3901
- original_sigint_handler = signal.getsignal(signal.SIGINT)
3902
- signal.signal(signal.SIGINT, self.sigint_handler)
3903
-
3904
# Grab terminal lock before the prompt has been drawn by readline
3905
self.terminal_lock.acquire()
3906
0 commit comments