docker/docker — pull request #8871 by tonistiigi (2014-10-30 23:32:27+00:00)
Title: Wait for hijack on docker start command

With current implementation there was a possibility
that /start responds quicker than /attach, meaning that
some output would be clipped.

Fixed so the implementation matches with `docker run`.

This also fixes the flaky test results for TestCreateEchoStdout.

Signed-off-by: Tõnis Tiigi (github: tonistiigi)

----

More info about flaky TestCreateEchoStdout:
Seems I wasn't the only one who got it: https://www.google.com/?#q=TestCreateEchoStdout
Daemon log difference for fail/pass: https://www.dropbox.com/s/abcmfoqen4rsxyo/Screen%20Shot%202014-10-31.png