Skip to content

Commit

Permalink
Merge pull request #1795 from thaJeztah/18.09_backport_dialstdio_1736
Browse files Browse the repository at this point in the history
[18.09 backport] dial-stdio: fix goroutine leakage
  • Loading branch information
silvin-lubecki committed Apr 2, 2019
2 parents c805ad2 + d8c6c83 commit c89750f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/command/system/dial_stdio.go
Expand Up @@ -46,8 +46,8 @@ func runDialStdio(dockerCli command.Cli) error {
return errors.New("the raw stream connection does not implement halfCloser")
}

stdin2conn := make(chan error)
conn2stdout := make(chan error)
stdin2conn := make(chan error, 1)
conn2stdout := make(chan error, 1)
go func() {
stdin2conn <- copier(connHalfCloser, &halfReadCloserWrapper{os.Stdin}, "stdin to stream")
}()
Expand Down

0 comments on commit c89750f

Please sign in to comment.