Revert regression introduced in 81eac415ad, which caused 'docker run -i' to never close stdin

This commit is contained in:
Solomon Hykes 2013-03-31 02:44:56 -07:00
parent 8293a0d533
commit a6779bcae2

View file

@ -927,6 +927,7 @@ 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
}) })
} }