]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/terminal.c
clean exit on EPOLLHUP
authorChristian Brauner <christian.brauner@mailbox.org>
Thu, 18 Feb 2016 14:20:34 +0000 (15:20 +0100)
committerChristian Brauner <christian.brauner@mailbox.org>
Sun, 21 Feb 2016 16:04:44 +0000 (17:04 +0100)
commit9395937a965ad3a777a3008c0615d9d5722e4460
tree8e692f847799158093599c385a08367e974f3610
parent39a78bbef05ed240e62fe4863a5d629de9808ea6
clean exit on EPOLLHUP

lxc_console_cb_tty_masterfd() unnecessarily reported a read/write error when
the fd was closed. This happens e.g. when we have allocated a tty in the
container with lxc-console and we shut the container down. lxc-console will
then exit with an error message. This patch introduces a test whether the
EPOLLHUP bit is set in the events mask. If so, we report no error.

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
src/lxc/console.c