]> git.proxmox.com Git - mirror_lxc.git/commit
lxccontainer: check do_lxcapi_init_pid() for failure
authorTycho Andersen <tycho@tycho.ws>
Mon, 25 Mar 2019 18:08:02 +0000 (12:08 -0600)
committerTycho Andersen <tycho@tycho.ws>
Mon, 25 Mar 2019 18:11:16 +0000 (12:11 -0600)
commitcaab004fcffbcfbb0b49472aef4b868aee6c7c4f
tree6066616e22f1f86e3e69dba0772f88d3a3e327b9
parentae6497d0c0c3e8fcb44e473352be4554cce457bb
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@tycho.ws>
src/lxc/lxccontainer.c