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