-
Notifications
You must be signed in to change notification settings - Fork 681
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Handle SIGTERM more gracefully in watchmedo
This fixes some misbehaviour where the child process could be orphaned if watchmedo received multiple SIGTERMs causing the `stop()` call to be interrupted. By raising a semantic exception after neutering the signal handler, we give ourselves a better chance of killing the child.
- Loading branch information
1 parent
60c57ae
commit a2767ae
Showing
1 changed file
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters