Fork bombs

Fork bombs operate both by consuming CPU time in the process of forking, and by saturating the [operating system]'s process table.
A basic implementation of a fork bomb is an infinite loop that repeatedly launches the same process

 :(){ :|:& };:

可以通过修改 /etc/security/limits.conf 限制最大进程数

你可能感兴趣的:(Fork bombs)