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

Function revisePidFile

utils.go:85–98  ·  view source on GitHub ↗
(context *cli.Context)

Source from the content-addressed store, hash-verified

83}
84
85func revisePidFile(context *cli.Context) error {
86 pidFile := context.String("pid-file")
87 if pidFile == "" {
88 return nil
89 }
90
91 // convert pid-file to an absolute path so we can write to the right
92 // file after chdir to bundle
93 pidFile, err := filepath.Abs(pidFile)
94 if err != nil {
95 return err
96 }
97 return context.Set("pid-file", pidFile)
98}
99
100// reviseRootDir ensures that the --root option argument,
101// if specified, is converted to an absolute and cleaned path,

Callers 2

startContainerFunction · 0.85
exec.goFile · 0.85

Calls 2

StringMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…