Do not close the stdin of the process when the client deattaches himslef
This commit is contained in:
parent
0b2eee8b33
commit
81eac415ad
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue