Skip to content

Commit

Permalink
make comments more useful
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwherry authored and MCLiii committed May 16, 2024
1 parent 631104a commit 72803ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Backend/core/comms.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,12 @@ def fs_down_callback(self, data):
set_format(config.DATAFORMAT_PATH)
p = Process(target=sync, args=[telemetry.fs_down_callback])

# kill child process when parent received SIGINT
# handle SIGINT by exiting (will apply to main process and all subprocesses)
def sigint_handler(signal, frame):
sys.exit(0)

# all processes will execute this handler upon receiving SIGINT
signal.signal(signal.SIGINT, sigint_handler)
# all process will execute this handler upon receiving sigint

def start_comms():
# start file sync
Expand Down

0 comments on commit 72803ed

Please sign in to comment.