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

Function Exec

internal/linux/linux.go:19–27  ·  view source on GitHub ↗

Exec wraps [unix.Exec].

(cmd string, args, env []string)

Source from the content-addressed store, hash-verified

17
18// Exec wraps [unix.Exec].
19func Exec(cmd string, args, env []string) error {
20 err := retryOnEINTR(func() error {
21 return unix.Exec(cmd, args, env)
22 })
23 if err != nil {
24 return &os.PathError{Op: "exec", Path: cmd, Err: err}
25 }
26 return nil
27}
28
29// Getwd wraps [unix.Getwd].
30func Getwd() (wd string, err error) {

Callers 2

InitMethod · 0.92
InitMethod · 0.92

Calls 2

retryOnEINTRFunction · 0.85
ExecMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…