aboutsummaryrefslogtreecommitdiff
path: root/libpod/oci_attach_linux.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-07-23 10:07:06 -0500
committerbaude <bbaude@redhat.com>2019-07-23 10:13:04 -0500
commita793bccae6d568d3f30534d66bea3d5a1e8d9302 (patch)
tree0e35bba61c97582527f9bd02cd48ad1b70e75c6f /libpod/oci_attach_linux.go
parentce60c4d30c4acfa0c3ec9fc584c7eb88f84ac35f (diff)
downloadpodman-a793bccae6d568d3f30534d66bea3d5a1e8d9302.tar.gz
podman-a793bccae6d568d3f30534d66bea3d5a1e8d9302.tar.bz2
podman-a793bccae6d568d3f30534d66bea3d5a1e8d9302.zip
golangci-lint cleanup
a PR slipped through without running the new linter. this cleans things up for the master branch. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'libpod/oci_attach_linux.go')
-rw-r--r--libpod/oci_attach_linux.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpod/oci_attach_linux.go b/libpod/oci_attach_linux.go
index 7157ee2f7..22afa7416 100644
--- a/libpod/oci_attach_linux.go
+++ b/libpod/oci_attach_linux.go
@@ -188,7 +188,9 @@ func setupStdioChannels(streams *AttachStreams, conn *net.UnixConn, detachKeys [
var err error
if streams.AttachInput {
_, err = utils.CopyDetachable(conn, streams.InputStream, detachKeys)
- conn.CloseWrite()
+ if connErr := conn.CloseWrite(); connErr != nil {
+ logrus.Errorf("unable to close conn: %q", connErr)
+ }
}
stdinDone <- err
}()