Skip to content

Commit

Permalink
Merge pull request #569 from NikitaSkrynnik/fix-ctx
Browse files Browse the repository at this point in the history
[qfix] Use the main ctx as a parent for signalCtx
  • Loading branch information
glazychev-art authored Dec 20, 2023
2 parents 27d3791 + cfabb63 commit 5912384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func main() {
defer cancel()

signalCtx, _ := signal.NotifyContext(
context.Background(),
ctx,
os.Interrupt,
// More Linux signals here
syscall.SIGHUP,
Expand Down

0 comments on commit 5912384

Please sign in to comment.