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

Function Dup3

internal/linux/linux.go:11–16  ·  view source on GitHub ↗

Dup3 wraps [unix.Dup3].

(oldfd, newfd, flags int)

Source from the content-addressed store, hash-verified

9
10// Dup3 wraps [unix.Dup3].
11func Dup3(oldfd, newfd, flags int) error {
12 err := retryOnEINTR(func() error {
13 return unix.Dup3(oldfd, newfd, flags)
14 })
15 return os.NewSyscallError("dup3", err)
16}
17
18// Exec wraps [unix.Exec].
19func Exec(cmd string, args, env []string) error {

Callers 2

dupStdioFunction · 0.92
reOpenDevNullFunction · 0.92

Calls 1

retryOnEINTRFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…