summaryrefslogtreecommitdiff
path: root/libpod/oci_attach_linux.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-01-25 10:09:43 -0500
committerGitHub <noreply@github.com>2022-01-25 10:09:43 -0500
commit92635c726ac063770f20ce9cc3da48f33a5ad73b (patch)
treee6be6f4dc40de3d627b07824309b2b857ceb30c3 /libpod/oci_attach_linux.go
parent534c4881b51b1bffaac1afcfbcfdc0dde09ccdb4 (diff)
parente252b3b4f294745ca8ac6d1c1850de2e7f1365c7 (diff)
downloadpodman-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_attach_linux.go')
-rw-r--r--libpod/oci_attach_linux.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/oci_attach_linux.go b/libpod/oci_attach_linux.go
index 1c15d567c..1ee664e81 100644
--- a/libpod/oci_attach_linux.go
+++ b/libpod/oci_attach_linux.go
@@ -273,9 +273,11 @@ func readStdio(conn *net.UnixConn, streams *define.AttachStreams, receiveStdoutE
var err error
select {
case err = <-receiveStdoutError:
+ conn.CloseWrite()
return err
case err = <-stdinDone:
if err == define.ErrDetach {
+ conn.CloseWrite()
return err
}
if err == nil {