]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: delay setup of cgroup until we have the init pid
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 16 Jan 2015 16:23:45 +0000 (16:23 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 27 Jan 2015 13:57:02 +0000 (13:57 +0000)
commit4acb01e43ec126c3ca6b7c7cdef5e40af23e1a93
treef0dacd74c3de9d3a4bfdb4c9e57209f3691acb06
parent0a8addc1033be61f8e8f25508042bf9ab7508d56
lxc: delay setup of cgroup until we have the init pid

Don't create the cgroups ahead of launching the container since
there is no need for the limits to apply during initial bootstrap.
Create the cgroup after the container PID is known and tell
systemd the initpid is the leader, instead of the controller
pid.
src/lxc/lxc_cgroup.c
src/lxc/lxc_cgroup.h
src/lxc/lxc_controller.c