service: explicitly remove control/ subcgroup after each control command
authorLennart Poettering <lennart@poettering.net>
Thu, 3 May 2012 19:54:44 +0000 (21:54 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 3 May 2012 19:54:44 +0000 (21:54 +0200)
commit88f3e0c91f08c65a479e1aa09f171550b744d829
tree5fb94a693b555dd43952fcec34b4213b12f07839
parent3beddc7861783347eb0aaf5fa492e8b2aef9e691
service: explicitly remove control/ subcgroup after each control command

The kernel will only notify us of cgroups running empty if no subcgroups
exist anymore. Hence make sure we don't leave our own control/ subcgroup
around longer than necessary.

https://bugzilla.redhat.com/show_bug.cgi?id=818381
src/core/cgroup.c
src/core/cgroup.h
src/core/mount.c
src/core/service.c
src/core/socket.c
src/core/swap.c