浏览代码

Do not close the stdin of the process when the client deattaches himslef

Guillaume J. Charmes 12 年之前
父节点
当前提交
81eac415ad
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      commands.go

+ 0 - 1
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
 			})
 		}