Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that attach ready channel does not block
We only use this channel in terminal attach, and it was not a buffered channel originally, so it would block on trying to send unless a receiver was ready. In the non-terminal case, there was no receiver, so attach blocked forever. Buffer the channel for a single bool so that it will never block, even if unused. Fixes containers#8154 Signed-off-by: Matthew Heon <mheon@redhat.com>
- Loading branch information