MCPcopy
hub / github.com/moby/moby / handleStopSignals

Function handleStopSignals

cmd/docker-proxy/main_linux.go:188–197  ·  view source on GitHub ↗
(p Proxy)

Source from the content-addressed store, hash-verified

186}
187
188func handleStopSignals(p Proxy) {
189 s := make(chan os.Signal, 10)
190 signal.Notify(s, os.Interrupt, syscall.SIGTERM)
191
192 for range s {
193 p.Close()
194
195 os.Exit(0)
196 }
197}

Callers 1

mainFunction · 0.85

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…