Merge pull request #104489 from liggitt/signal-buffer

Fix buffered signal channel go vet error
This commit is contained in:
Kubernetes Prow Robot
2021-08-20 14:53:58 -07:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -205,7 +205,7 @@ func main() {
// process and all its children, we ignore it here, while our children ssh connections
// are stopped. This allows us to gather artifacts and print out test state before
// being killed.
c := make(chan os.Signal)
c := make(chan os.Signal, 2)
signal.Notify(c, os.Interrupt)
go func() {
<-c