chiark / gitweb /
core: propagate TasksMax= on the root slice to sysctls
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Jan 2018 17:50:27 +0000 (18:50 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:17 +0000 (07:50 +0200)
commit6c81962c245a341609319421ba8cdf0ac5962744
treef5bedabae856f6c944335f5e9ea08997971ff018
parenta696ccac5a53620d1652b10218a7f62647a2c501
core: propagate TasksMax= on the root slice to sysctls

The cgroup "pids" controller is not supported on the root cgroup.
However we expose TasksMax= on it, but currently don't actually apply it
to anything. Let's correct this: if set, let's propagate things to the
right sysctls.

This way we can expose TasksMax= on all units in a somewhat sensible
way.
src/core/cgroup.c