]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: move payload to sub-cgroup first, then sync cgroup trees
authorLennart Poettering <lennart@poettering.net>
Tue, 5 Mar 2019 17:57:53 +0000 (18:57 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Mar 2019 10:26:17 +0000 (11:26 +0100)
commit27da7ef0d09e00eae821f3ef26e1a666fe7aa087
tree95303d77c916583c2d2cd12f471ae8e3aa5239cd
parent119d27317c441daefb7348d1562852c322c093ac
nspawn: move payload to sub-cgroup first, then sync cgroup trees

if we sync the legacy and unified trees before moving to the right
subcgroup then ultimately the cgroup paths in the hierarchies will be
out-of-sync... Hence, let's move the payload first, and sync then.

Addresses: https://github.com/systemd/systemd/pull/9762#issuecomment-441187979
src/nspawn/nspawn.c