MCPcopy
hub / github.com/opencontainers/runc / newNotifySocket

Function newNotifySocket

notify_socket.go:28–43  ·  view source on GitHub ↗
(context *cli.Context, notifySocketHost, id string)

Source from the content-addressed store, hash-verified

26}
27
28func newNotifySocket(context *cli.Context, notifySocketHost, id string) *notifySocket {
29 if notifySocketHost == "" {
30 return nil
31 }
32
33 root := filepath.Join(context.GlobalString("root"), id)
34 socketPath := filepath.Join(root, "notify", "notify.sock")
35
36 notifySocket := &notifySocket{
37 socket: nil,
38 host: notifySocketHost,
39 socketPath: socketPath,
40 }
41
42 return notifySocket
43}
44
45func (s *notifySocket) Close() error {
46 return s.socket.Close()

Callers 2

startContainerFunction · 0.85
notifySocketStartFunction · 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…