Skip to content

Commit

Permalink
Signal handling
Browse files Browse the repository at this point in the history
  • Loading branch information
maouw committed Sep 28, 2023
1 parent 98519d0 commit 294e09a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions hyakvnc/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ def create_node_signal_handler(signal_number, frame):

signal.signal(signal.SIGINT, create_node_signal_handler)
signal.signal(signal.SIGTSTP, create_node_signal_handler)
signal.signal(signal.SIGKILL, create_node_signal_handler)
signal.signal(signal.SIGTERM, create_node_signal_handler)

job_id = None
Expand Down Expand Up @@ -212,7 +211,6 @@ def signal_handler(signal_number, frame):

signal.signal(signal.SIGINT, signal_handler)
signal.signal(signal.SIGTSTP, signal_handler)
signal.signal(signal.SIGKILL, signal_handler)
signal.signal(signal.SIGTERM, signal_handler)
vnc_sessions = HyakVncSession.find_running_sessions(app_config)
if len(vnc_sessions) == 0:
Expand All @@ -236,7 +234,6 @@ def signal_handler(signal_number, frame):

signal.signal(signal.SIGINT, signal_handler)
signal.signal(signal.SIGTSTP, signal_handler)
signal.signal(signal.SIGKILL, signal_handler)
signal.signal(signal.SIGTERM, signal_handler)
if job_id:
sessions = HyakVncSession.find_running_sessions(app_config, job_id=job_id)
Expand Down

0 comments on commit 294e09a

Please sign in to comment.