5

I can look around the internet and find that the associated number for SIGKILL is 9, but is there linux documentation (such as, a man page) showing the complete list of signals and their numbers?

3 Answers 3

11

The signal(7) man page (at least the one I have) shows multiple possible numbers for some of the signals. If you can get kill to list the numbers, they should be correct for the running system. Try:

kill -l

or

kill -L

In both cases, that's an "ell" (for "list"), not a "one". Bash's built-in kill -l shows a nice numbered table. Linux's procps kill -l shows a terse list of names without numbers, but -L shows a table with the numbers. BSD kill seems to only understand -l, and won't show you the numbers.

2
  • The -L option is better because it also shows the numbers associated with the signal names, and puts them in a nice table format. My version of procps is 3.2.8.
    – tshepang
    Feb 23, 2011 at 9:43
  • @Tshepang: Thanks! Answer updated. I hadn't actually thought to try anything but Bash's built-in kill.
    – Jander
    Feb 24, 2011 at 7:26
10

man 7 signal

1
  • 2
    The kill(1) man page should refer to the signal man page in the "SEE ALSO" section Feb 17, 2011 at 19:38
2

Also look in /usr/include/signal.h and either scan the #define or #include statements (which on Ubuntu 10.10 tells you to look in /usr/include/bits/signum.h). Note that the SIGRTMIN/SIGRTMAX are placeholders for kernal and unused signals and should not be called by the shell or a program.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .