Skip to content

Commit 3d4d9aa

Browse files
authored
Don't add signal handler for SIGQUIT on Windows (#399)
1 parent 5daef7c commit 3d4d9aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel_gateway/gatewayapp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,8 @@ def init_signal(self):
721721
if not sys.platform.startswith("win") and sys.stdin and sys.stdin.isatty():
722722
signal.signal(signal.SIGINT, self._handle_sigint)
723723
signal.signal(signal.SIGTERM, self._signal_stop)
724-
signal.signal(signal.SIGQUIT, self._signal_stop)
724+
if not sys.platform.startswith("win"):
725+
signal.signal(signal.SIGQUIT, self._signal_stop)
725726

726727
def _handle_sigint(self, sig, frame):
727728
"""SIGINT handler spawns confirmation dialog"""

0 commit comments

Comments
 (0)