Skip to content

Commit

Permalink
Signal channel should have a buffer of 1. (#381)
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Brazil <[email protected]>
  • Loading branch information
brian-brazil authored Nov 14, 2018
1 parent db8aa8d commit b000653
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 @@ -227,7 +227,7 @@ func main() {

level.Info(logger).Log("msg", "Loaded config file")

hup := make(chan os.Signal)
hup := make(chan os.Signal, 1)
reloadCh := make(chan chan error)
signal.Notify(hup, syscall.SIGHUP)
go func() {
Expand Down

0 comments on commit b000653

Please sign in to comment.