|
|
@@ -226,7 +226,7 @@ func checkIfUnknownCommandExistInDefaultContext(err error, currentContext string
|
|
|
|
|
|
func newSigContext() (context.Context, func()) {
|
|
|
ctx, cancel := context.WithCancel(context.Background())
|
|
|
- s := make(chan os.Signal)
|
|
|
+ s := make(chan os.Signal, 1)
|
|
|
signal.Notify(s, syscall.SIGTERM, syscall.SIGINT)
|
|
|
go func() {
|
|
|
<-s
|