-
Notifications
You must be signed in to change notification settings - Fork 821
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We try to read cmd.Process in the thread that handles incoming signals, but there's no synchronization between that goroutine and the one that sets cmd.Process to a non-nil value. This might be overkill, e.g. there may be a way to write this with less code, but I confirmed that this patch addresses the race when shutting down the program. Fixes #158.
- Loading branch information
1 parent
1a2907d
commit 761159b
Showing
2 changed files
with
16 additions
and
7 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