Skip to content

Commit

Permalink
Don't add signal handler for SIGQUIT on Windows (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgerrits authored Feb 29, 2024
1 parent 5daef7c commit 3d4d9aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel_gateway/gatewayapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,8 @@ def init_signal(self):
if not sys.platform.startswith("win") and sys.stdin and sys.stdin.isatty():
signal.signal(signal.SIGINT, self._handle_sigint)
signal.signal(signal.SIGTERM, self._signal_stop)
signal.signal(signal.SIGQUIT, self._signal_stop)
if not sys.platform.startswith("win"):
signal.signal(signal.SIGQUIT, self._signal_stop)

def _handle_sigint(self, sig, frame):
"""SIGINT handler spawns confirmation dialog"""
Expand Down

0 comments on commit 3d4d9aa

Please sign in to comment.