[lxc-devel] [lxc/lxc] caab00: lxccontainer: check do_lxcapi_init_pid() for failure

Christian Brauner noreply at github.com
Mon Mar 25 19:55:58 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: caab004fcffbcfbb0b49472aef4b868aee6c7c4f
      https://github.com/lxc/lxc/commit/caab004fcffbcfbb0b49472aef4b868aee6c7c4f
  Author: Tycho Andersen <tycho at tycho.ws>
  Date:   2019-03-25 (Mon, 25 Mar 2019)

  Changed paths:
    M src/lxc/lxccontainer.c

  Log Message:
  -----------
  lxccontainer: check do_lxcapi_init_pid() for failure

This function can fail, because it uses the command API. If it does fail,
we get weird errors about not being able to open strange proc paths:

xc authyldapservice-c8020e20-e203-e852-90ef-4d378e8d1444 20190323163231.386 ERROR    lxc_utils - utils.c:switch_to_ns:1184 - No such file or directory - failed to open /proc/-104/ns/net

So let's check for errors before then.

Signed-off-by: Tycho Andersen <tycho at tycho.ws>


  Commit: 781f2bfab44154313baf88f1ed65808d00a6c1b9
      https://github.com/lxc/lxc/commit/781f2bfab44154313baf88f1ed65808d00a6c1b9
  Author: Christian Brauner <christian at brauner.io>
  Date:   2019-03-25 (Mon, 25 Mar 2019)

  Changed paths:
    M src/lxc/lxccontainer.c

  Log Message:
  -----------
  Merge pull request #2917 from tych0/check-init-pid-failures

lxccontainer: check do_lxcapi_init_pid() for failure


Compare: https://github.com/lxc/lxc/compare/ae6497d0c0c3...781f2bfab441


More information about the lxc-devel mailing list