Explorar o código

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

Guillaume J. Charmes %!s(int64=12) %!d(string=hai) anos
pai
achega
81eac415ad
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  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
 			})
 		}