kill -3 是什么意思?

use*_*414 25 linux unix freebsd macos

我知道是什么kill -9意思,但谁能解释一下是什么kill -3意思?它发出什么特殊信号吗?

Joe*_*Joe 36

原始 POSIX.1-1990 标准中描述的信号:

   Signal     Value     Action   Comment
   -------------------------------------------------------------------------
   SIGHUP        1       Term    Hangup detected on controlling terminal
                                 or death of controlling process
   SIGINT        2       Term    Interrupt from keyboard
   SIGQUIT       3       Core    Quit from keyboard
   SIGILL        4       Core    Illegal Instruction
   SIGABRT       6       Core    Abort signal from abort(3)
   SIGFPE        8       Core    Floating point exception
   SIGKILL       9       Term    Kill signal
   SIGSEGV      11       Core    Invalid memory reference
   SIGPIPE      13       Term    Broken pipe: write to pipe with no readers
   SIGALRM      14       Term    Timer signal from alarm(2)
   SIGTERM      15       Term    Termination signal
   SIGUSR1   30,10,16    Term    User-defined signal 1
   SIGUSR2   31,12,17    Term    User-defined signal 2
   SIGCHLD   20,17,18    Ign     Child stopped or terminated
   SIGCONT   19,18,25    Cont    Continue if stopped
   SIGSTOP   17,19,23    Stop    Stop process
   SIGTSTP   18,20,24    Stop    Stop typed at tty
   SIGTTIN   21,21,26    Stop    tty input for background process
   SIGTTOU   22,22,27    Stop    tty output for background process
Run Code Online (Sandbox Code Playgroud)

  • 不幸的是,这些信号的数值因操作系统而异,甚至因架构而异。 (6认同)

小智 23

kill -3 是一个线程转储,它将列出当前在 Java 虚拟机 (JVM) 中处于活动状态的所有 Java 线程。


And*_*pin 20

kill -l向我们展示了所有信号。按照这个提示 3 表示SIGQUIT