On Thu, Apr 29, 2021 at 08:23:34PM -0700, Roman Gushchin wrote: > On Thu, Apr 29, 2021 at 02:01:11PM +0200, Christian Brauner wrote: > > From: Christian Brauner <christian.brauner@xxxxxxxxxx> > > > > If cgroup.kill file is supported make use of it. > > > > Cc: Roman Gushchin <guro@xxxxxx> > > Cc: Tejun Heo <tj@xxxxxxxxxx> > > Cc: cgroups@xxxxxxxxxxxxxxx > > Signed-off-by: Christian Brauner <christian.brauner@xxxxxxxxxx> > > --- > > tools/testing/selftests/cgroup/cgroup_util.c | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/tools/testing/selftests/cgroup/cgroup_util.c b/tools/testing/selftests/cgroup/cgroup_util.c > > index 027014662fb2..3e27cd9bda75 100644 > > --- a/tools/testing/selftests/cgroup/cgroup_util.c > > +++ b/tools/testing/selftests/cgroup/cgroup_util.c > > @@ -252,6 +252,10 @@ int cg_killall(const char *cgroup) > > char buf[PAGE_SIZE]; > > char *ptr = buf; > > > > + /* If cgroup.kill exists use it. */ > > + if (!cg_write(cgroup, "cgroup.kill", "1")) > ^^^^^^^^ > spaces? Huh, sorry about that weird how that got in there... Will fix.