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

Commit

Permalink
exit immediately after cleanup()
Browse files Browse the repository at this point in the history
  • Loading branch information
mkiwala committed Feb 2, 2015
1 parent c2355d0 commit 1da6afd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ptero_common/devserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,11 @@ def cleanup():


def log_and_cleanup(signum, frame):
signal.signal(signal.SIGINT, signal.SIG_IGN)
signal.signal(signal.SIGTERM, signal.SIG_IGN)
sys.stderr.write("RECEIVED SIGNAL: '%s'\n" % signum)
cleanup()
sys.exit(0)


def setup_signal_handlers():
Expand Down

0 comments on commit 1da6afd

Please sign in to comment.