Skip to content

Commit

Permalink
Do not handle SIGHUP in CLI on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
druzsan committed Jul 13, 2023
1 parent 7c8b3f5 commit 2b95dba
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 2b95dba

Please sign in to comment.