Permalink
Browse files

handling SIGTERM

  • Loading branch information...
1 parent 49aaf53 commit 7c6eca0b466c8853dfede54377ad41268d9ff69f @outofjungle committed Feb 8, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 rpi/bin/sync2serial
View
@@ -14,6 +14,7 @@ def exit_handler(signal, frame):
sys.exit(0)
signal.signal(signal.SIGINT, exit_handler)
+signal.signal(signal.SIGTERM, exit_handler)
def checksum(sentence):

0 comments on commit 7c6eca0

Please sign in to comment.