mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
dc56a76bc9
When I use `docker exec -ti test ls`, I got error: ``` ERRO[0035] Handler for POST /v1.23/exec/9677ecd7aa9de96f8e9e667519ff266ad26a5be80e80021a997fff6084ed6d75/resize returned error: bad file descriptor ``` It's because `POST /exec/<id>/start` and `POST /exec/<id>/resize` are asynchronous, it is possible that exec process finishes and ternimal is closed before resize. Then `console.Fd()` will get a large invalid number and we got the above error. Fix it by adding synchronization between exec and resize. Signed-off-by: Qiang Huang <h.huangqiang@huawei.com> |
||
---|---|---|
.. | ||
exec.go |