A way to graceful shutdown a process chain
See original GitHub issuedotnet run
creates 2 processes: (1) dotnet
and (2) the app being run.
If you kill dotnet
the app being run (the exe) is orphaned.
For dotnet watch
we need a way to tell the parent process to terminate the child processes before exiting.
Not sure if this should be addressed at the CLI level, or lower…
cc @piotrpMSFT
Issue Analytics
- State:
- Created 8 years ago
- Comments:18 (5 by maintainers)
Top Results From Across the Web
A way to graceful shutdown a process chain · Issue #5063
Have an API exposed from CLR to kill a process tree; Have the cli create a file or write to std out the...
Read more >Implementing Graceful Shutdown in Go
Shutting down gracefully is important for any long lasting process, especially for one that handles some kind of state.
Read more >In what order should I send signals to gracefully shutdown ...
Short Answer: Send SIGTERM , 30 seconds later, SIGKILL . That is, send SIGTERM , wait a bit (it may vary from program...
Read more >Kubernetes best practices: terminating with grace
Most programs gracefully shut down when receiving a SIGTERM, but if you are using third-party code or are managing a system you don't...
Read more >Graceful shutdowns on Cloud Run: Deep dive
Learn how to perform various "graceful shutdown" tasks in your application code with Cloud Run.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@muratg
There’s now a Process.Kill() overload for terminating the entire process tree.
@bgribaudo perfect! Thanks!