util: introduce more accurate definitions of TASKS_MAX
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Jan 2018 14:31:23 +0000 (15:31 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 22 Jan 2018 15:22:03 +0000 (16:22 +0100)
commitf3a367d66cd502c5127aec9962304b643d914df9
treea2a5c021b1cc99ca2ad23700841207da8b55878c
parent3e52ec43011f0b7f72c5bf43ce60fa855d1a0ee2
util: introduce more accurate definitions of TASKS_MAX

The maximum number of processes a tasks on the system is usually lower
than what pid_t would allow, and is compiled into the kernel (and
documented in proc(5)). Let's add proper defines for that, so that
we can adjust the pid_max sysctl without fearing invalid accesses.
src/basic/process-util.h
src/basic/util.c