Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes #1469, where three bugs pervent main from existing on SIGTERM. The first two are blocking receiving from cancel chanels which never have values sent to them, cancelStateUpdateChan and cancelPolicyUpdateChan. It seems closing the chanels should be all the is needed to signal the watching goroutines to exit. The other is the signal hander never exiting an infinite for loop. The sigFunc is called in an errorGroup which blocks exiting Serve and thus main. It looks like a refactor in #1382 removed an os.Exit(0), replacing it with a return breaks out of the loop.
- Loading branch information