• D
    Fix busy wait loop in LXC container I/O handling · 5087a5a0
    Daniel P. Berrange 提交于
    If the host side of an LXC container console disconnected
    and the guest side continued to write data, until the PTY
    buffer filled up, the LXC controller would busy wait. It
    would repeatedly see POLLHUP from poll() and not disable
    the watch.
    
    This was due to some bogus logic detecting blocking
    conditions. Upon seeing a POLLHUP we must disable all
    reading & writing from the PTY, and setup the epoll to
    wake us up again when the connection comes back.
    Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
    5087a5a0
lxc_controller.c 70.2 KB