Skip to content

Commit

Permalink
Merge pull request #89 from grigi/silence_sigint
Browse files Browse the repository at this point in the history
Silence SIGINT causing tracebacks of different process dumping to stderr
  • Loading branch information
tobymao authored Sep 11, 2023
2 parents 9bf0c1b + c654f05 commit 421425d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions saq/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,15 @@ def main() -> None:
p = multiprocessing.Process(target=start, args=(settings,))
p.start()

start(
settings,
web=args.web,
extra_web_settings=args.extra_web_settings,
port=args.port,
)
try:
start(
settings,
web=args.web,
extra_web_settings=args.extra_web_settings,
port=args.port,
)
except KeyboardInterrupt:
pass


if __name__ == "__main__":
Expand Down

0 comments on commit 421425d

Please sign in to comment.