mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
Make channel for signal.Notify() buffered
This commit is contained in:
parent
1329c68cf3
commit
64433ec674
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ func run() int {
|
|||
rt := icingadb.NewRuntimeUpdates(db, rc, logger)
|
||||
ods := overdue.NewSync(db, rc, logger)
|
||||
|
||||
sig := make(chan os.Signal)
|
||||
sig := make(chan os.Signal, 1)
|
||||
signal.Notify(sig, os.Interrupt, syscall.SIGTERM, syscall.SIGHUP)
|
||||
|
||||
// Main loop
|
||||
|
|
|
|||
Loading…
Reference in a new issue