summaryrefslogtreecommitdiff
path: root/integration/internal
diff options
context:
space:
mode:
authorZiheng Liu <lzhfromustc@gmail.com>2019-10-27 20:22:52 -0400
committerZiheng Liu <lzhfromustc@gmail.com>2019-10-27 20:22:52 -0400
commit6233217a31395b69aa814c7d3db5cf844eb87437 (patch)
tree29016b40fc9788c83a1ab44df229afeeca06b49f /integration/internal
parenta09e6e323e55e1a9b21df9c2c555f5668df3ac9b (diff)
downloaddocker-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.go2
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