Skip to content

Commit

Permalink
[qfix] Use the main ctx as a parent for signalCtx
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
  • Loading branch information
NikitaSkrynnik committed Dec 20, 2023
1 parent 27d3791 commit cfabb63
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 cfabb63

Please sign in to comment.