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

Function readSync

libcontainer/sync.go:172–185  ·  view source on GitHub ↗
(pipe *syncSocket, expected syncType)

Source from the content-addressed store, hash-verified

170}
171
172func readSync(pipe *syncSocket, expected syncType) error {
173 sync, err := readSyncFull(pipe, expected)
174 if err != nil {
175 return err
176 }
177 if sync.Arg != nil {
178 return fmt.Errorf("sync %v had unexpected argument passed: %q", expected, string(*sync.Arg))
179 }
180 if sync.File != nil {
181 _ = sync.File.Close()
182 return fmt.Errorf("sync %v had unexpected file passed", sync.Type)
183 }
184 return nil
185}
186
187// parseSync runs the given callback function on each syncT received from the
188// child. It will return once io.EOF is returned from the given pipe.

Callers 3

syncParentReadyFunction · 0.85
syncParentHooksFunction · 0.85
syncParentSeccompFunction · 0.85

Calls 2

readSyncFullFunction · 0.85
CloseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…