[lxc-devel] [lxc/lxc] f1a393: console: prepare for generic signal handler

GitHub noreply at github.com
Mon Nov 13 16:21:18 UTC 2017


  Branch: refs/heads/stable-2.0
  Home:   https://github.com/lxc/lxc
  Commit: f1a39390a46ec5318b8198c8520061f0c4857abb
      https://github.com/lxc/lxc/commit/f1a39390a46ec5318b8198c8520061f0c4857abb
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-13 (Mon, 13 Nov 2017)

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

  Log Message:
  -----------
  console: prepare for generic signal handler

Non-functional changes to enable handling more signals.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: bfc1a0e92c07cf0cc8af478805616ff26bc89bf6
      https://github.com/lxc/lxc/commit/bfc1a0e92c07cf0cc8af478805616ff26bc89bf6
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-13 (Mon, 13 Nov 2017)

  Changed paths:
    M src/lxc/console.c

  Log Message:
  -----------
  console: exit mainloop on SIGTERM

This allows cleanly exiting a console session without control sequences.

Relates to https://github.com/lxc/lxd/pull/4001 .

Note that the existence of a signal handler now doesn't guarantee that ts->node
is allocated. Instead, ts->node will now only be added to if stdinfd is a tty.
New checks need to take that into account.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


Compare: https://github.com/lxc/lxc/compare/ce63c9ca7fd1...bfc1a0e92c07


More information about the lxc-devel mailing list