Quantcast
Channel: Does linux have any measures to protect against fork bombs? - Super User
Browsing latest articles
Browse All 6 View Live

Answer by David Ongaro for Does linux have any measures to protect against...

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...

View Article



Answer by Maciej Piechotka for Does linux have any measures to protect...

It depends if you want to use it on user level or system level. On user level the ulimit(or corresponding commands for other shells) would be easiest solution.However on system level there are...

View Article

Answer by Jay for Does linux have any measures to protect against fork bombs?

Yes, although it may not be enabled by default on your system. The setrlimit system call defines system limits -- including the number of processes per user.Let's look at it first in the kernel API...

View Article

Answer by Oliver Charlesworth for Does linux have any measures to protect...

This is known as a fork bomb.Does linux have any protection measure to such program which can run out of memory?Not really. Each fork produces a new process, with its own virtual address space and...

View Article

Answer by Ken Bloom for Does linux have any measures to protect against fork...

Use ulimit -u from the bash shell to set a limit on "max user processes".From the C shell, you use the limit command.If you need a system call to do this, use the setrlimit call to set RLIMIT_NPROC.

View Article


Does linux have any measures to protect against fork bombs?

#include <unistd.h>int main(int argc, char* argv[]) { while(1) { fork(); } }I run this program on my linux, nothing outputs on the terminal, the OS seems go dead. Does linux have any protection...

View Article
Browsing latest articles
Browse All 6 View Live


Latest Images