mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
use buffered channel with signal.Notify()
PiperOrigin-RevId: 461939747
This commit is contained in:
committed by
gVisor bot
parent
1ba318d72a
commit
dc7675bd6c
@@ -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{})
|
||||
|
||||
Reference in New Issue
Block a user