Skip to content

Commit

Permalink
wait for SIGUSR2 signal (pprof) (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
gorl committed Jul 6, 2023
1 parent 8cecb84 commit 9275893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/router/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ var runCmd = &cobra.Command{
}

sigs := make(chan os.Signal, 1)
signal.Notify(sigs, syscall.SIGHUP, syscall.SIGINT, syscall.SIGTERM, syscall.SIGUSR1)
signal.Notify(sigs, syscall.SIGHUP, syscall.SIGINT, syscall.SIGTERM, syscall.SIGUSR1, syscall.SIGUSR2)

router, err := router.NewRouter(ctx, &rcfg)
if err != nil {
Expand Down

0 comments on commit 9275893

Please sign in to comment.