MCPcopy
hub / github.com/grafana/dskit / SignalHandlerLoop

Function SignalHandlerLoop

signals/signals.go:78–80  ·  view source on GitHub ↗

SignalHandlerLoop blocks until it receives a SIGINT, SIGTERM or SIGQUIT. For SIGINT and SIGTERM, it exits; for SIGQUIT is print a goroutine stack dump.

(log log.Logger, ss ...SignalReceiver)

Source from the content-addressed store, hash-verified

76// For SIGINT and SIGTERM, it exits; for SIGQUIT is print a goroutine stack
77// dump.
78func SignalHandlerLoop(log log.Logger, ss ...SignalReceiver) {
79 NewHandler(log, ss...).Loop()
80}

Callers

nothing calls this directly

Calls 2

NewHandlerFunction · 0.85
LoopMethod · 0.65

Tested by

no test coverage detected