diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-10-28 12:16:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-28 12:16:24 +0000 |
commit | 3bc449371c97486620fd368deb906c68cdaf220d (patch) | |
tree | f02e5b99fdba93bb81a001ec3ea9fbbfc26ac91c /libpod/runtime.go | |
parent | f16b13366424468246a2c78414e2c92142393f6e (diff) | |
parent | 960831f9c8ff83f427c296adcef0ed114c434fca (diff) | |
download | podman-3bc449371c97486620fd368deb906c68cdaf220d.tar.gz podman-3bc449371c97486620fd368deb906c68cdaf220d.tar.bz2 podman-3bc449371c97486620fd368deb906c68cdaf220d.zip |
Merge pull request #12126 from giuseppe/fix-race-warning-message
runtime: change PID existence check
Diffstat (limited to 'libpod/runtime.go')
-rw-r--r-- | libpod/runtime.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go index 950ac65eb..b01f8dd13 100644 --- a/libpod/runtime.go +++ b/libpod/runtime.go @@ -545,9 +545,7 @@ func makeRuntime(ctx context.Context, runtime *Runtime) (retErr error) { if became { // Check if the pause process was created. If it was created, then // move it to its own systemd scope. - if _, err = os.Stat(pausePid); err == nil { - utils.MovePauseProcessToScope(pausePid) - } + utils.MovePauseProcessToScope(pausePid) os.Exit(ret) } } |