分类: LINUX
2014-08-05 16:20:17
在下列几种情况下,系统会发送SIGKILL信号:
1、OOM killer。out of memory
2、CPU-time resource hard limit。
3、ptrace()
Another fairly 'standard' case is when the process tracing another
process using ptrace() dies without stopping the tracing; the traced
process is sent a SIGKILL then. Since the process in this case is
being actively traced with gdb, that would apparently not apply here,
but it does explain why killing gdb will kill a process that gdb is
attached to.
4、bad memory hardware (usually results in SIGSEGVs, but it looks like there are cases where SIGKILL will be generated)
5、network or pseudo filesystem being ripped out from under the process
6、hit the SysReq key
7、various "secure computing" setups which restrict the operations a process can use