Skip to content

Fix Windows compatibility issue in add_exit_handlers() for aikido_background_process.py#532

Merged
bitterpanda63 merged 3 commits intoAikidoSec:mainfrom
QRouland:exit_handlers_windows_fix
Dec 1, 2025
Merged

Fix Windows compatibility issue in add_exit_handlers() for aikido_background_process.py#532
bitterpanda63 merged 3 commits intoAikidoSec:mainfrom
QRouland:exit_handlers_windows_fix

Conversation

@QRouland
Copy link
Copy Markdown
Contributor

Commit 37f2a44f31f9cc30011b64f22cdb8fee5b9bf46e introduced add_exit_handlers() in aikido_background_process.py, but it breaks Windows compatibility because the signals SIGQUIT and SIGHUP are only available on Unix-based systems (Linux and Darwin). As a result, the background process crashes on Windows during startup.

This pull request fixes add_exit_handlers() to support Windows compatibility by handling platform-specific signals.

@hansott
Copy link
Copy Markdown
Member

hansott commented Nov 30, 2025

@QRouland Hi, thanks for creating a pull request! We'll review the PR soon. Could you check the linting errors? Thanks!

@QRouland
Copy link
Copy Markdown
Contributor Author

@hansott I fixed the linting issue. If you'd prefer, I can squash this into the original commit before merging. Just let me know!

@bitterpanda63
Copy link
Copy Markdown
Member

Looks good! Thanks for the contribution, We'll make a release fixing this issue ASAP :)

Comment thread aikido_zen/background_process/aikido_background_process.py Outdated
@bitterpanda63 bitterpanda63 merged commit 45c4a17 into AikidoSec:main Dec 1, 2025
53 of 54 checks passed
@bitterpanda63
Copy link
Copy Markdown
Member

Could you test that v1.2.27 now also fixes the issue?

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.

3 participants