chiark / gitweb /
cgroup: run PID 1 in the root cgroup
authorLennart Poettering <lennart@poettering.net>
Tue, 5 Nov 2013 21:14:52 +0000 (22:14 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 6 Nov 2013 01:12:21 +0000 (02:12 +0100)
commit15c60e99a974782351ca8a5ed438dc3729eb5fe7
treed12c19004b47ae6b8d9e4912c30e09f98cf07fe0
parent2270309471213a3c960543e523130627e9cb10e2
cgroup: run PID 1 in the root cgroup

This way cleaning up the cgroup tree on shutdown is a lot easier since
we are in the root dir. Also PID 1 was previously artificially placed in
system.slice, even though our rule actually was not to have processes in
slices. The root slice otoh is magic anyway, so having PID 1 in there
sounds less surprising.

Of course, this means that PID is scheduled against the three top-level
slices.
src/core/cgroup.c