chiark / gitweb /
util: introduce more accurate definitions of TASKS_MAX
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Jan 2018 14:31:23 +0000 (15:31 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:16 +0000 (07:50 +0200)
commit21487b2180e5df4b09a0797770e06e2579f7f698
tree168850b0f6ec3bf189dee313a75d0662d4df1f0e
parentedd34a52a3bb28d7f7eebedf45d24fa1f51a9b06
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