-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow dev server to exit cleanly (SIGINT/SIGTERM)
Previously we were sending SIGKILL immediately to the child. This ensures that the child exits as quickly as possible, but it also means that the child probably won't have time to finish flushing files to disk (trace files, cache hit statistics, etc.), and can lead to incomplete writes. We should give the child a small amount of time to exit cleanly with SIGINT/SIGTERM before sending SIGKILL. The timeout is needed in case the child process is unresponsive/hanging.
- Loading branch information
Showing
1 changed file
with
21 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