ソースを参照

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 {
 		if !config.Detach {
 			Go(func() error {
 			Go(func() error {
 				_, err := io.Copy(cmdStdin, stdin)
 				_, err := io.Copy(cmdStdin, stdin)
-				cmdStdin.Close()
 				return err
 				return err
 			})
 			})
 		}
 		}