MCPcopy
hub / github.com/gotify/server / doShutdown

Function doShutdown

runner/runner.go:70–77  ·  view source on GitHub ↗
(shutdown chan<- error, err error)

Source from the content-addressed store, hash-verified

68}
69
70func doShutdown(shutdown chan<- error, err error) {
71 select {
72 case shutdown <- err:
73 default:
74 // If there is no one listening on the shutdown channel, then the
75 // shutdown is already initiated and we can ignore these errors.
76 }
77}
78
79func startListening(connectionType, listenAddr string, port, keepAlive int) (net.Listener, error) {
80 network, addr := getNetworkAndAddr(listenAddr, port)

Callers 2

RunFunction · 0.85
doShutdownOnSignalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…