From: Serge Hallyn Date: Mon, 7 Mar 2016 19:04:30 +0000 (-0800) Subject: comment fixups X-Git-Tag: lxc-2.0.0.rc6~1^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d30ec4cbc2dd7e9203661527673cdb773b255058;p=thirdparty%2Flxc.git comment fixups Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/cgfsng.c b/src/lxc/cgfsng.c index b4519b2b0..123303502 100644 --- a/src/lxc/cgfsng.c +++ b/src/lxc/cgfsng.c @@ -648,6 +648,10 @@ static bool parse_hierarchies(struct cgfsng_handler_data *d) char **klist = NULL, **nlist = NULL; size_t len = 0; + /* + * Root spawned containers escape the current cgroup, so use init's + * cgroups as our base in that case. + */ if (geteuid()) basecginfo = read_file("/proc/self/cgroup"); else @@ -922,7 +926,7 @@ static void remove_path_for_hierarchy(struct hierarchy *h, char *cgname) } /* - * Try to create the same cgrou pin all hierarchies. + * Try to create the same cgroup in all hierarchies. * Start with cgroup_pattern; next cgroup_pattern-1, -2, ..., -999 */ static inline bool cgfsng_create(void *hdata)