I know what kill -9 means, but anyone can explain what does kill -3 mean? Is there any special signal it sends out?
Asked
Active
Viewed 6.5k times
28
bertieb
- 7,344
- 36
- 42
- 54
user705414
- 1,385
- 5
- 14
- 11
-
7Have you tried `man kill`? – Tamara Wijsman Oct 31 '11 at 13:24
-
7@TomWijsman, man kill doesn't list the signals and man signals doesn't show anything at all. This is actually the first useful thin that comes up with you search google for "kill -3". :) It is really easy to over look the 'kill -l' option, especially if you didn't know much about signals ahead of time. – Ape-inago Jul 26 '13 at 14:34
-
2@Ape-inago: It is short enough to not skip over an option, but granted clarifying what to look for helps, thanks; `kill -l` indeed lists a summary, if you were wondering `man 7 signal` does list them in detail. It is where the table in the currently accepted answer likely comes from. – Tamara Wijsman Aug 06 '13 at 21:40
3 Answers
40
The signals described in the original POSIX.1-1990 standard:
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
Joe
- 906
- 9
- 14
-
6Unfortunately, the numeric values of these signals vary between operating systems and even between architectures. – u1686_grawity Oct 30 '11 at 18:06
25
kill -3 is a thread dump that will list all the Java threads that are currently active in Java Virtual Machine (JVM).
eoportus
- 351
- 3
- 2
-
See https://docs.oracle.com/javase/10/troubleshoot/handle-signals-and-exceptions.htm#JSTGD345 – Gustave Jun 18 '19 at 13:21
-
What's the equivalent of this on windows? On windows it says `kill is not a recognized command` – theprogrammer Jun 24 '21 at 21:49