chiark / gitweb /
nspawn: skip symlink to a combined cgroup hierarchy if it already exists
authorIago López Galeiras <iago@endocode.com>
Wed, 13 May 2015 13:45:49 +0000 (15:45 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 08:56:08 +0000 (09:56 +0100)
commitf0b159f2e7b4ac8a75997834d240459f5436d36e
tree507d45ce5afb9d10ef39767ec9f3bc4c1b7950bc
parent15658a4bc930a9b4b9511256431c2e2383dad0f5
nspawn: skip symlink to a combined cgroup hierarchy if it already exists

If a symlink to a combined cgroup hierarchy already exists and points to
the right path, skip it. This avoids an error when the cgroups are set
manually before calling nspawn.
src/shared/util.c
src/shared/util.h