Skip to content

Add SIGINT handler and block app exit during firmware updates#454

Open
ABuljko wants to merge 1 commit into
Nitrokey:mainfrom
ABuljko:signal-handling
Open

Add SIGINT handler and block app exit during firmware updates#454
ABuljko wants to merge 1 commit into
Nitrokey:mainfrom
ABuljko:signal-handling

Conversation

@ABuljko

@ABuljko ABuljko commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator
  • Custom SIGINT handler Ctrl+C now gracefully closes the app instead of being ignored (fixes Handle signals properly #132)
  • Signal wakeup timer periodically hands control back to the Python interpreter so signals get delivered while the Qt event loop runs
  • Update guard blocks exit (Ctrl+C and window close) while a firmware update is running, preventing device damage
  • Shows a warning message when an exit is blocked during an update

@ABuljko ABuljko marked this pull request as ready for review July 7, 2026 08:48
@ABuljko ABuljko requested a review from a team as a code owner July 7, 2026 08:48
@ABuljko ABuljko requested review from daringer, james-knippes, mmerklinger, robin-nitrokey and sosthene-nitrokey and removed request for a team July 7, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle signals properly

1 participant