use buffered channel with signal.Notify()

PiperOrigin-RevId: 461939747
This commit is contained in:
Kevin Krakauer
2022-07-19 12:01:26 -07:00
committed by gVisor bot
parent 1ba318d72a
commit dc7675bd6c
+1 -1
View File
@@ -86,7 +86,7 @@ func (c *saveCmd) Execute(_ context.Context, f *flag.FlagSet, args ...interface{
return subcommands.ExitFailure
}
ch := make(chan os.Signal)
ch := make(chan os.Signal, 1)
signal.Notify(ch, os.Interrupt)
done := make(chan struct{})