diff options
Diffstat (limited to 'src/core/cgroup.c')
-rw-r--r-- | src/core/cgroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 83df0f3c9a..a995d1436d 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -340,14 +340,14 @@ int manager_setup_cgroup(Manager *m) { } if (m->running_as == SYSTEMD_SYSTEM) - suffix = "/system"; + suffix = NULL; else { sprintf(suffix_buffer, "/systemd-%lu", (unsigned long) getpid()); suffix = suffix_buffer; } free(m->cgroup_hierarchy); - if (endswith(current, suffix)) { + if (!suffix || endswith(current, suffix)) { /* We probably got reexecuted and can continue to use our root cgroup */ m->cgroup_hierarchy = current; current = NULL; |