]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/cgroup.c
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)
committerLennart Poettering <lennart@poettering.net>
Mon, 22 Jan 2018 15:26:55 +0000 (16:26 +0100)
commit00b5974f70f566d52400e20139448cec08a60c7c
treead8caaa12d90cc20fc120495f589e5db09aec71d
parentc36a69f4cd8f835260e73941b14dff58e6f53e60
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
src/core/manager.h