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

Method ClosePostStart

tty.go:162–166  ·  view source on GitHub ↗

ClosePostStart closes any fds that are provided to the container and dup2'd so that we no longer have copy in our process.

()

Source from the content-addressed store, hash-verified

160// ClosePostStart closes any fds that are provided to the container and dup2'd
161// so that we no longer have copy in our process.
162func (t *tty) ClosePostStart() {
163 for _, c := range t.postStart {
164 _ = c.Close()
165 }
166}
167
168// Close closes all open fds for the tty and/or restores the original
169// stdin state to what it was prior to the container execution

Callers 1

runMethod · 0.80

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected