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

Method copyIO

tty.go:26–30  ·  view source on GitHub ↗
(w io.Writer, r io.ReadCloser)

Source from the content-addressed store, hash-verified

24}
25
26func (t *tty) copyIO(w io.Writer, r io.ReadCloser) {
27 defer t.wg.Done()
28 _, _ = io.Copy(w, r)
29 _ = r.Close()
30}
31
32// setup pipes for the process so that advanced features like c/r are able to easily checkpoint
33// and restore the process's IO without depending on a host specific path or device

Callers 2

setupProcessPipesFunction · 0.95
recvttyMethod · 0.95

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected