diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-01-25 10:09:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-25 10:09:43 -0500 |
commit | 92635c726ac063770f20ce9cc3da48f33a5ad73b (patch) | |
tree | e6be6f4dc40de3d627b07824309b2b857ceb30c3 /libpod/oci_conmon_exec_linux.go | |
parent | 534c4881b51b1bffaac1afcfbcfdc0dde09ccdb4 (diff) | |
parent | e252b3b4f294745ca8ac6d1c1850de2e7f1365c7 (diff) | |
download | podman-92635c726ac063770f20ce9cc3da48f33a5ad73b.tar.gz podman-92635c726ac063770f20ce9cc3da48f33a5ad73b.tar.bz2 podman-92635c726ac063770f20ce9cc3da48f33a5ad73b.zip |
Merge pull request #12857 from giuseppe/fix-rm-dir-not-empty
exec: retry rm -rf on ENOTEMPTY and EBUSY
Diffstat (limited to 'libpod/oci_conmon_exec_linux.go')
-rw-r--r-- | libpod/oci_conmon_exec_linux.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/oci_conmon_exec_linux.go b/libpod/oci_conmon_exec_linux.go index 29c600109..04deaac83 100644 --- a/libpod/oci_conmon_exec_linux.go +++ b/libpod/oci_conmon_exec_linux.go @@ -389,6 +389,7 @@ func (r *ConmonOCIRuntime) startExec(c *Container, sessionID string, options *Ex if err != nil { return nil, nil, err } + defer processFile.Close() args := r.sharedConmonArgs(c, sessionID, c.execBundlePath(sessionID), c.execPidPath(sessionID), c.execLogPath(sessionID), c.execExitFileDir(sessionID), ociLog, define.NoLogging, "") |