mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 06:02:18 +00:00
Fix buffered signal channel go vet error
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user