diff options
| author | Ziheng Liu <lzhfromustc@gmail.com> | 2019-10-27 20:22:52 -0400 |
|---|---|---|
| committer | Ziheng Liu <lzhfromustc@gmail.com> | 2019-10-27 20:22:52 -0400 |
| commit | 6233217a31395b69aa814c7d3db5cf844eb87437 (patch) | |
| tree | 29016b40fc9788c83a1ab44df229afeeca06b49f /integration/internal | |
| parent | a09e6e323e55e1a9b21df9c2c555f5668df3ac9b (diff) | |
| download | docker-6233217a31395b69aa814c7d3db5cf844eb87437.tar.gz | |
integration/internal/container: fix a goroutine leak bug by adding 1 buffer
Signed-off-by: Ziheng Liu <lzhfromustc@gmail.com>
Diffstat (limited to 'integration/internal')
| -rw-r--r-- | integration/internal/container/exec.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integration/internal/container/exec.go b/integration/internal/container/exec.go index 55ad23aeb5..dfd46a2436 100644 --- a/integration/internal/container/exec.go +++ b/integration/internal/container/exec.go @@ -57,7 +57,7 @@ func Exec(ctx context.Context, cli client.APIClient, id string, cmd []string) (E // read the output var outBuf, errBuf bytes.Buffer - outputDone := make(chan error) + outputDone := make(chan error, 1) go func() { // StdCopy demultiplexes the stream into two buffers |
