diff --git a/pkg/checksdb/checksdb.go b/pkg/checksdb/checksdb.go index 2d43aacd2..03987bf14 100644 --- a/pkg/checksdb/checksdb.go +++ b/pkg/checksdb/checksdb.go @@ -40,6 +40,8 @@ func RunChecks(labelsExpr string, timeout time.Duration) error { const SIGINTBufferLen = 10 sigIntChan := make(chan os.Signal, SIGINTBufferLen) signal.Notify(sigIntChan, syscall.SIGINT, syscall.SIGTERM) + // turn off ctrl-c capture on exit + defer signal.Stop(sigIntChan) // Labels expression parser not implemented yet. Assume labelsExpr is just a label. abort := false