浏览代码

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

Solomon Hykes 12 年之前
父节点
当前提交
a6779bcae2
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      commands.go

+ 1 - 0
commands.go

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