New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to send different signal to child on graceful exit (e.g. sending SIGTERM on SIGINT) #151
Comments
|
Oh wait |
Signal does work on file change btw |
I feel like if you're telling the process to continue and it continues it shouldn't be terribly surprising. But we can certainly see about adding a way to customise the signal on exit. |
you mean the "If I type c here the child continues in the background" part? (thanks for fixing the title) |
nah, it just passes the signal along in the normal unix fashion |
Btw in the meantime I've found that option |
Right now process just dies and it's impossible to capture this event |
This is now possible with a combination of |
First of all a lot for this nice tool!
I'm using it to re-run an elixir script so when I change something it restarts the command.
When I save a file watchexec correctly uses SIGTERM to shutdown the process, when I do ctrl-c instead the child receives INT which by default makes the elixir script pause its execution and show a few commands.
For example:
when I run it via watchexec isntead:
is it an expected behavior? Maybe it would make sense to add an option to send sigterm on watchexec exit or?
The text was updated successfully, but these errors were encountered: