Skip to content

Handle SIGTERM along SIGINT.#4

Open
apteryks wants to merge 1 commit intochayleaf:masterfrom
guixotic:handle-sigterm
Open

Handle SIGTERM along SIGINT.#4
apteryks wants to merge 1 commit intochayleaf:masterfrom
guixotic:handle-sigterm

Conversation

@apteryks
Copy link

This means a plain 'pkill mitm-cache' will also cause the out.json file to be written before terminating.

  • src/main.rs: Add a handler for SIGTERM.

Fixes: #2

This means a plain 'pkill mitm-cache' will also cause the out.json
file to be written before terminating.

* src/main.rs: Add a handler for SIGTERM.

Fixes: chayleaf#2
@apteryks
Copy link
Author

apteryks commented Jan 15, 2026

Disclaimer: I'm not a Rustacean and took advantage of ChatGPT for guidance for a solution.

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.

SIGTERM should also trigger writing out the out.json file

1 participant