Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Always install default signal handler for SIGINT. #1413

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions digits/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import argparse
import os.path
import sys
import signal


# Update PATH to include the local DIGITS directory
Expand All @@ -15,6 +16,8 @@
if not found_parent_dir:
sys.path.insert(0, PARENT_DIR)

# Install default signal handler for SIGINT
signal.signal(signal.SIGINT, signal.default_int_handler)

def main():
parser = argparse.ArgumentParser(description='DIGITS server')
Expand Down