From a19a9e3ca81880f030a7621a9e03ffb63c95b1f1 Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Tue, 2 Apr 2013 12:21:35 -0700 Subject: [PATCH] Discarding errors in CmdRun --- commands.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands.go b/commands.go index ca1f7890c3..0a2c7f47d9 100644 --- a/commands.go +++ b/commands.go @@ -930,7 +930,9 @@ func (srv *Server) CmdRun(stdin io.ReadCloser, stdout io.Writer, args ...string) fmt.Fprintln(stdout, container.ShortId()) } Debugf("Waiting for attach to return\n") - return <-attachErr + <-attachErr + // Expecting I/O pipe error, discarding + return nil } func NewServer() (*Server, error) {