mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-05-07 01:37:06 +00:00
Closing the parser in Stop() triggers kmsgparser's read goroutine to close its output channel, which made watchLoop take the restart path (added in #1192) during intentional shutdown. Leave parser cleanup to watchLoop's defer, which is the single owner of the parser lifecycle.