-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: SIGKILL procs without kill command afer timeout
We start all procs as CommandContexts instead of Commands, with a WithCancel context attached. A context cancellation handler which tries to stop the application gracefully, waits the specified amount of time, and subsequently SIGKILLs if the process hasn't stopped already is attached to the CommandContext. The CommandContext type internally has some synchronization to try to minimize the chances of races between the context cancellation handler, and normal termination of applications.
- Loading branch information
Showing
2 changed files
with
52 additions
and
11 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
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