Skip to content

Commit

Permalink
Merge pull request kubevirt#10960 from nunnatsa/fix-CNV-36682
Browse files Browse the repository at this point in the history
Add a missing call to a context cancel function
  • Loading branch information
kubevirt-bot authored Jan 4, 2024
2 parents 73e3d11 + de87eb6 commit 583e130
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/virt-tail/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ func main() {
}

// Create context that listens for the interrupt signal from the container runtime.
ctx, _ := signal.NotifyContext(context.Background(), os.Interrupt)
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt)
defer cancel()

g, gctx := errgroup.WithContext(ctx)

Expand Down

0 comments on commit 583e130

Please sign in to comment.