[systemd-devel] [PATCH 2/2] nspawn: skip symlink to a combined cgroup hierarchy if it already exists

2015-05-13 Thread Iago López Galeiras
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/nspawn/nspawn.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git

Re: [systemd-devel] [PATCH 2/2] nspawn: skip symlink to a combined cgroup hierarchy if it already exists

2015-05-13 Thread systemd github import bot
Patchset imported to github. Pull request: https://github.com/systemd-devs/systemd/compare/master...systemd-mailing-devs:1431508540-3855-3-git-send-email-iago%40endocode.com -- Generated by https://github.com/haraldh/mail2git ___ systemd-devel mailing

Re: [systemd-devel] [PATCH 2/2] nspawn: skip symlink to a combined cgroup hierarchy if it already exists

2015-05-13 Thread Lennart Poettering
On Wed, 13.05.15 11:15, Iago López Galeiras (i...@endocode.com) wrote: -if (symlink(combined, target) 0) +if (symlink(combined, target) 0) { +if (errno == EEXIST) { +r =