-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ExperimentalEventHandler: add a shutdown flag
We've observed hangs of Bazel on shutdown with thread stacks indicating that the cli-update-thread does not exit properly. We don't know why this is happening, and have no easy way to reproduce. My best guess is that the interrupt is swallowed somewhere, although I was unable to pinpoint a specific place where that could happen. As a defensive mechanism, this change adds a boolean flag that signals to the CLI thread to shutdown in case the interrupt signal gets lost. This also helps with a potential race between startUpdateThread and stopUpdateThread. Possible fix for #8432. PiperOrigin-RevId: 249612495
- Loading branch information
Luca Di Grazia
committed
Sep 4, 2022
1 parent
f70fde6
commit 0d1328d
Showing
1 changed file
with
23 additions
and
39 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