Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle SIGBREAK (Windows console close) (#2473)
SetConsoleCtrlHandler is not needed because SIGBREAK is also sent on window close. The process is killed when the thread handling SIGBREAK returns. That's why we must handle it synchronously and wait for other threads to finish first. The Windows-defined timeout is only 5 seconds but there is no way to change that. https://docs.microsoft.com/en-us/windows/console/ctrl-c-and-ctrl-break-signals Fixes #1277 Fixes #1853
- Loading branch information
1 parent
bcb86ea
commit b92d82a
Showing
2 changed files
with
28 additions
and
0 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