Add SIGHUP cleanup handling #55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-46-add-sighup-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
SIGHUPwith the existing_request_stophandler so a manual terminal session closing (or an SSH disconnect) triggers the same clean shutdown path asSIGTERM.SIGHUPhandler in thefinallyblock alongside the existingSIGTERMrestore.hasattr(signal, "SIGHUP")so the runtime stays safe on platforms whereSIGHUPdoesn't exist (e.g. Windows).SIGTERM,KeyboardInterrupt, or systemd-driven service shutdowns.Verification
ruff format src tests scripts— 29 files left unchanged.ruff check src tests scripts— all checks passed.python -m pytest tests/— 1 passed (the existing_signal_handler_startup_failureregression test from #45 still passes).python -m rgb_aura.main --dry-run --dry-run-events 3— clean run, all 14 animations registered, scheduler preview produces events normally.Hardware verification
Not required. Signal handling only; no LED write-path changes, no device mapping changes, no animation changes.
Linked issue
Closes #46.
Branch workflow
developfix/issue-46-add-sighup-cleanupdevelopmain.