chiark / gitweb /
cgroup: Handle error when destroying cgroup
authorRoss Lagerwall <rosslagerwall@gmail.com>
Sat, 29 Nov 2014 15:27:14 +0000 (15:27 +0000)
committerLennart Poettering <lennart@poettering.net>
Tue, 9 Dec 2014 01:28:09 +0000 (02:28 +0100)
commitdab5bf859900c0abdbf78c584e4aed42a19768cd
tree10bea471029d1bef4e21df6d1d61455e23bb14c0
parenteb5800026d5a6754514fb8f8a8561b49974fc879
cgroup: Handle error when destroying cgroup

If a cgroup fails to be destroyed (most likely because there are still
processes running as part of a service after the main pid exits), don't
free and remove the cgroup unit from the manager.  This fixes a
regression introduced by the cgroup rework in v205 where systemd would
forget about processes still running after the unit becomes inactive.
(This can happen when the main pid exits and KillMode=process or none).
src/core/cgroup.c