Use buffered channel for signal handling

This commit is contained in:
Conrad Hoffmann 2021-12-09 21:21:34 +01:00
parent ffd2720d1b
commit 43f2978543
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ func main() {
os.Exit(1)
}
hup := make(chan os.Signal)
hup := make(chan os.Signal, 1)
reloadCh = make(chan chan error)
signal.Notify(hup, syscall.SIGHUP)
go func() {