Skip to content

Commit 3f0e934

Browse files
authored
Merge pull request #12226 from poettering/22bit-pids
sysctl: let's by default increase the numeric PID range from 2^16 to …
2 parents 54f802f + 45497f4 commit 3f0e934

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

TODO

-2
Original file line numberDiff line numberDiff line change
@@ -898,8 +898,6 @@ Features:
898898

899899
* support crash reporting operation modes (https://live.gnome.org/GnomeOS/Design/Whiteboards/ProblemReporting)
900900

901-
* default to actual 32-bit PIDs, via /proc/sys/kernel/pid_max
902-
903901
* be able to specify a forced restart of service A where service B depends on, in case B
904902
needs to be auto-respawned?
905903

sysctl.d/50-default.conf

+4
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@ fs.protected_symlinks = 1
4040
# Enable regular file and FIFO protection
4141
fs.protected_regular = 1
4242
fs.protected_fifos = 1
43+
44+
# Bump the numeric PID range to its maximum of 2^22 (from the in-kernel default
45+
# of 2^16), to make PID collisions less likely.
46+
kernel.pid_max = 4194304

0 commit comments

Comments
 (0)