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

Merge pull request #40144 from lzhfromustc/GL_outputDone

integration/internal/container: fix a goroutine leak bug
This commit is contained in:
Kirill Kolyshkin 2019-11-07 12:02:47 -08:00 committed by GitHub
commit 154cf042fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ func Exec(ctx context.Context, cli client.APIClient, id string, cmd []string) (E
// read the output // read the output
var outBuf, errBuf bytes.Buffer var outBuf, errBuf bytes.Buffer
outputDone := make(chan error) outputDone := make(chan error, 1)
go func() { go func() {
// StdCopy demultiplexes the stream into two buffers // StdCopy demultiplexes the stream into two buffers