forked from mirrors/statsd_exporter
Buffer signals channel
Signed-off-by: Wangchong Zhou <fffonion@gmail.com>
This commit is contained in:
parent
383ee9bd3b
commit
47b5ef9be0
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -260,7 +260,7 @@ func main() {
|
|||
}
|
||||
exporter := NewExporter(mapper)
|
||||
|
||||
signals := make(chan os.Signal)
|
||||
signals := make(chan os.Signal, 1)
|
||||
signal.Notify(signals, os.Interrupt, syscall.SIGTERM)
|
||||
|
||||
go exporter.Listen(events)
|
||||
|
|
Loading…
Reference in a new issue