]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup-util: kill also threads
authorTopi Miettinen <toiwoton@gmail.com>
Mon, 20 May 2019 09:20:58 +0000 (12:20 +0300)
committerLennart Poettering <lennart@poettering.net>
Sat, 22 Jun 2019 16:35:48 +0000 (18:35 +0200)
commite48fcfef06d81bf08607d3c1657fdc6aa1e9a6ee
tree951fae667c69bbbd5c5f47cc46091648121feff5
parent0127b1a05e8635bea4ea244a00ca242fde976b56
cgroup-util: kill also threads

It's possible for a zombie process to have live threads. These are not listed
in /sys in "cgroup.procs" for cgroupsv2, but they show up in
"cgroup.threads" (cgroupv2) or "tasks" (cgroupv1) nodes. When killing a
cgroup (v2 only) with SIGKILL, let's also kill threads after killing processes,
so the live threads of a zombie get killed too.

Closes #12262.
src/basic/cgroup-util.c