From 81eac415ad03d93596a0d8da92bdccd9ecd4ee63 Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Fri, 29 Mar 2013 09:42:42 -0700 Subject: [PATCH] Do not close the stdin of the process when the client deattaches himslef --- commands.go | 1 - 1 file changed, 1 deletion(-) diff --git a/commands.go b/commands.go index a66e4fb822..acd7d02921 100644 --- a/commands.go +++ b/commands.go @@ -909,7 +909,6 @@ func (srv *Server) CmdRun(stdin io.ReadCloser, stdout io.Writer, args ...string) if !config.Detach { Go(func() error { _, err := io.Copy(cmdStdin, stdin) - cmdStdin.Close() return err }) }