1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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

This commit is contained in:
Guillaume J. Charmes 2013-03-29 09:42:42 -07:00
parent 0b2eee8b33
commit 81eac415ad

View file

@ -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
}) })
} }