daemon: Respond to Ctrl+C signal gracefully#127
Conversation
|
Can you elaborate on what particular connection we need to be graceful? Usually closing a connection is graceful enough, and it's done anyway by the OS when the process quits. |
|
@kalvdans, when running with a debugger in certain configurations (VS Code debug console), SIGINT/Ctrl+C was not working. This is just a developer quality-of-life improvement |
Oh, why wasn't it working? It's supposed to kill the process by default. |
|
🤷 Not sure. I still can't get it to kill the process when the debugger restarts, which is annoying. |
I guess we can start it in a debugger and break on calls to sigaction(). I'm not very good myself with rust, but I think we need to investigate who installs the signal handler to be able to block it at the source :) |
No description provided.