Skip to content

Commit

Permalink
Handle SIGABRT to show shutdown icon #18
Browse files Browse the repository at this point in the history
  • Loading branch information
pskowronek committed Oct 7, 2023
1 parent f72e4cd commit 8f6ae54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def main():

atexit.register(shutdown_hook)
signal.signal(signal.SIGTERM, signal_hook)
signal.signal(signal.SIGABRT, signal_hook) # sent by watchdog

buttons = None
if not DEBUG_MODE and (os.environ.get("EPAPER_BUTTONS_ENABLED", "true") == "true"):
Expand Down

0 comments on commit 8f6ae54

Please sign in to comment.