Было прикольно смотреть, как прогибается система, и kill невозможно запустить :) Когда-то давно. Прочитал про форк-бомбу и решил посмотреть, как такая смерть выглядит.
Да, знал что вы, Селектер, ЛАМО, но не знал, что вы ТАКОЕ ламо.:(
ulimit
Control the resources available to a process started by the shell, on systems that allow such control.
SYNTAX
ulimit [-acdfHlmnpsStuv] [limit]
OPTIONS
-a All current limits are reported.
-c The maximum size of core files created.
-d The maximum size of a process's data segment.
-f The maximum size of files created by the shell.
(This is the default option)
-H Change and report the hard limit associated with a resource.
-l The maximum size that may be locked into memory.
-m The maximum resident set size.
-n The maximum number of open file descriptors.
-p The pipe buffer size.
-s The maximum stack size.
-S Change and report the soft limit associated with a resource.
-t The maximum amount of cpu time in seconds.
-u The maximum number of processes available to a single user.
-v The maximum amount of virtual memory available to the process.
If limit is given, it is the new value of the specified resource. Otherwise, the current value of the soft limit for the specified resource is printed, unless the `-H' option is supplied.
When setting new limits, if neither `-H' nor `-S' is supplied, both the hard and soft limits are set.
Values are in 1024-byte increments, except for `-t', which is in seconds, `-p', which is in units of 512-byte blocks, and `-n' and `-u', which are unscaled values.
The return status is zero unless an invalid option is supplied, a non-numeric argument other than unlimited is supplied as a limit, or an error occurs while setting a new limit.
`ulimit' is a BASH builtin command.
#
# Login configuration initializations:
#
# ERASECHAR Terminal ERASE character ('\010' = backspace).
# KILLCHAR Terminal KILL character ('\025' = CTRL/U).
# UMASK Default "umask" value.
# ULIMIT Default "ulimit" value.
#
# The ERASECHAR and KILLCHAR are used only on System V machines.
# The ULIMIT is used only if the system supports it.
# (now it works with setrlimit too; ulimit is in 512-byte units)
#
# Prefix these values with "0" to get octal, "0x" to get hexadecimal.
#
ERASECHAR 0177
KILLCHAR 025
UMASK 022
ULIMIT 2097152
Смотри /etc/pam.d/* на предмет включения pam_limits.so, /etc/security/limits.conf на предмет самих лимитов. Не стесняйся смотреть ulimit -a, увидишь результаты. lofin.defs, afair, is deprecated.