Since the most recent answers here are over 3 years old, I want to point out that newer Kernels (since 4.3) have explicit support to prevent fork bombs via the new "PIDs subsystem". (See https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=49b786ea146f69c371df18e81ce0a2d5839f865c and https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=917d8e2d10f40e28aa9e0d824b2e5b8197d79fc2)
↧