diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-05-21 22:08:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-21 22:08:08 +0200 |
commit | 536fd6adddd9693649457441bd4721c3a774ff0b (patch) | |
tree | e4837741f40bc2a6476d6416bfc5566dcd672061 /pkg/util/utils_supported.go | |
parent | 8f43d08d966b9519011cb8ca86e2db9f1f18dfcb (diff) | |
parent | 53a76223ee5bded3be3e0ed957517513ad357a0e (diff) | |
download | podman-536fd6adddd9693649457441bd4721c3a774ff0b.tar.gz podman-536fd6adddd9693649457441bd4721c3a774ff0b.tar.bz2 podman-536fd6adddd9693649457441bd4721c3a774ff0b.zip |
Merge pull request #3084 from giuseppe/rootless-pause-process
rootless: use a pause process to keep namespaces alive
Diffstat (limited to 'pkg/util/utils_supported.go')
-rw-r--r-- | pkg/util/utils_supported.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/util/utils_supported.go b/pkg/util/utils_supported.go index 8b98658c2..3d9140a23 100644 --- a/pkg/util/utils_supported.go +++ b/pkg/util/utils_supported.go @@ -82,3 +82,13 @@ func GetRootlessRuntimeDir() (string, error) { } return rootlessRuntimeDir, nil } + +// GetRootlessPauseProcessPidPath returns the path to the file that holds the pid for +// the pause process +func GetRootlessPauseProcessPidPath() (string, error) { + runtimeDir, err := GetRootlessRuntimeDir() + if err != nil { + return "", err + } + return filepath.Join(runtimeDir, "libpod", "pause.pid"), nil +} |