prometheus/cmd/prometheus
Lucas Serven 70c8b2c63c
cmd/prometheus: buffer signal chans
According to the GoDoc for os.Signal [0]:

> Package signal will not block sending to c: the caller must ensure that
> c has sufficient buffer space to keep up with the expected signal rate.
> For a channel used for notification of just one signal value, a buffer
> of size 1 is sufficient.

[0] https://golang.org/pkg/os/signal/#Notify

Signed-off-by: Lucas Serven <lserven@gmail.com>
2018-11-14 10:33:28 +01:00
..
main.go cmd/prometheus: buffer signal chans 2018-11-14 10:33:28 +01:00
main_test.go return error exit status in prometheus cli (#4296) 2018-06-21 08:32:26 +01:00