Files
docker-cli/components/engine/daemon
Qiang Huang 5c90ec4623 Fix race condition with exec and resize
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>
Upstream-commit: dc56a76bc9f16b2d57b9d64822e305c1e787fcf0
Component: engine
2016-03-11 09:59:50 +08:00
..
2016-02-01 09:57:38 -08:00
2016-02-24 21:12:14 -05:00
2016-03-09 20:33:21 -08:00
2016-03-09 20:33:21 -08:00
2016-02-03 10:43:01 -08:00
2016-01-14 08:17:40 +00:00
2016-02-16 11:19:23 -08:00
2016-03-08 07:55:01 -08:00
2016-02-09 14:25:02 -05:00

This directory contains code pertaining to running containers and storing images

Code pertaining to running containers:

  • execdriver

Code pertaining to storing images:

  • graphdriver