INNER CODE UNIT · Go
catchShutdown
cri-o/cri-o · cmd/crio/main.go:53
func catchShutdown(
ctx context.Context,
cancel context.CancelFunc,
gserver *grpc.Server,
tp *sdktrace.TracerProvider,
streamingServer *server.Server,
hserver *http.Server,
signalled *bool,
) {
sig := make(chan os.Signal, 2048)
signal.Notify(
sig,
signals.Interrupt,
signals.Term,
unix.SIGUSR1,
unix.SIGUSR2,
unix.SIGPIPE,
signals.Hup,