Signed-off-by: Ziheng Liu <lzhfromustc@gmail.com>
| ... | ... |
@@ -57,7 +57,7 @@ func Exec(ctx context.Context, cli client.APIClient, id string, cmd []string) (E |
| 57 | 57 |
|
| 58 | 58 |
// read the output |
| 59 | 59 |
var outBuf, errBuf bytes.Buffer |
| 60 |
- outputDone := make(chan error) |
|
| 60 |
+ outputDone := make(chan error, 1) |
|
| 61 | 61 |
|
| 62 | 62 |
go func() {
|
| 63 | 63 |
// StdCopy demultiplexes the stream into two buffers |