Skip to content

Commit

Permalink
Merge pull request #146 from Renumics/fix/no-sighup-on-windows
Browse files Browse the repository at this point in the history
Do not handle SIGHUP in CLI on Windows
  • Loading branch information
neindochoh authored Jul 13, 2023
2 parents 7c8b3f5 + 2b95dba commit cc86fd2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion renumics/spotlight/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Command line entrypoint for the renumics-spotlight python package
"""
import os
import platform
import signal
import sys
from typing import Optional, Tuple, Union
Expand Down Expand Up @@ -122,7 +123,8 @@ def main(

signal.signal(signal.SIGINT, lambda *_: sys.exit())
signal.signal(signal.SIGTERM, lambda *_: sys.exit())
signal.signal(signal.SIGHUP, lambda *_: sys.exit())
if platform.system() != "Windows":
signal.signal(signal.SIGHUP, lambda *_: sys.exit())

spotlight.show(
table_or_folder,
Expand Down

0 comments on commit cc86fd2

Please sign in to comment.