[lxc-devel] [lxc/lxc] 3e6580: use lxc_read_nointr() and lxc_write_nointr()

GitHub noreply at github.com
Fri Apr 8 19:11:26 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 3e6580ec3a22edccf9a211dcac40767727009ef1
      https://github.com/lxc/lxc/commit/3e6580ec3a22edccf9a211dcac40767727009ef1
  Author: Christian Brauner <christian.brauner at mailbox.org>
  Date:   2016-04-08 (Fri, 08 Apr 2016)

  Changed paths:
    M src/lxc/console.c
    M src/lxc/lxc_attach.c

  Log Message:
  -----------
  use lxc_read_nointr() and lxc_write_nointr()

Using EPOLLHUP to determine when to exit the loop is unreliable. Let's exit
clean when read() returns -1 && errno != EINTR or 0.

Signed-off-by: Christian Brauner <christian.brauner at mailbox.org>


  Commit: e66b6c96ac00a369e50affcba941bce13b8524c4
      https://github.com/lxc/lxc/commit/e66b6c96ac00a369e50affcba941bce13b8524c4
  Author: Christian Brauner <christian.brauner at mailbox.org>
  Date:   2016-04-08 (Fri, 08 Apr 2016)

  Changed paths:
    M src/lxc/console.c

  Log Message:
  -----------
  fix lxc_console_cb_tty_*()

Clean exit when read() == -1 && errno != EINTR or read() == 0.

Signed-off-by: Christian Brauner <christian.brauner at mailbox.org>


  Commit: 32036de0dc9419a6df2a220a7c546688fa889708
      https://github.com/lxc/lxc/commit/32036de0dc9419a6df2a220a7c546688fa889708
  Author: Serge Hallyn <serge at hallyn.com>
  Date:   2016-04-08 (Fri, 08 Apr 2016)

  Changed paths:
    M src/lxc/console.c
    M src/lxc/lxc_attach.c

  Log Message:
  -----------
  Merge pull request #954 from brauner/2016-04-08/lxc_attach_simplify_and_log

use lxc_read_nointr() and lxc_write_nointr()


Compare: https://github.com/lxc/lxc/compare/6a874d31a763...32036de0dc94


More information about the lxc-devel mailing list