Skip to content

Commit

Permalink
Only capture ctrl-c while tests are running
Browse files Browse the repository at this point in the history
  • Loading branch information
edcdavid committed Dec 6, 2023
1 parent ab4b227 commit 3e7e1f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/checksdb/checksdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e7e1f9

Please sign in to comment.