在某些情况下,SIGKILL无法使用? [英] Is there some cases in which SIGKILL will not work?
问题描述
在任何情况下,没有阻塞信号SIGKILL
的Linux上运行的应用程序在触发SIGKILL
信号时都不会被杀死吗?
Are there any cases where an application running on Linux, which has not blocked signal SIGKILL
, will not get killed on firing SIGKILL
signal?
推荐答案
SIGKILL
不能被阻止或忽略(SIGSTOP
也不能).
SIGKILL
cannot be blocked or ignored (SIGSTOP
can't either).
如果进程在系统调用内部"被阻塞,则该进程可能对信号无响应(等待I/O是一个示例-等待失败的NFS文件系统的I/O,该NFS文件系统未经
A process can become unresponsive to the signal if it is blocked "inside" a system call (waiting on I/O is one example - waiting on I/O on a failed NFS filesystem that is hard-mounted without the intr
option for example).
(另一种情况是僵尸进程,但那时它们还不是真正的进程.)
(Another side case is zombie processes, but they're not really processes at that point.)
这篇关于在某些情况下,SIGKILL无法使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!