Rev | Author | # | Line |
---|---|---|---|
3 | JohnMcPherson | 1 | A signal is basically a message sent from one process to another, indicating a change of state. |
1 | AristotlePagaltzis | 2 | |
3 | Different versions of [Unix] use different names and/or numbers for some of the lesser used signals. See the signal(7) man-page. You can find the signals and numbers used in the [POSIX] standard, in <tt>/usr/include/bits/signum.h</tt> on a [Linux] system, or by invoking <tt>kill -l</tt>. | ||
4 | |||
5 | # [SIGHUP] | ||
6 | # [SIGINT] | ||
7 | # [SIGQUIT] | ||
8 | # [SIGILL] | ||
9 | # [SIGTRAP] | ||
2 | PerryLorier | 10 | # [SIGABRT] (aka [SIGIOT]) |
1 | AristotlePagaltzis | 11 | # [SIGBUS] |
12 | # [SIGFPE] | ||
13 | # [SIGKILL] | ||
14 | # [SIGUSR1] | ||
15 | # [SIGSEGV] | ||
16 | # [SIGUSR2] | ||
17 | # [SIGPIPE] | ||
18 | # [SIGALRM] | ||
19 | # [SIGTERM] | ||
20 | # [SIGSTKFLT] | ||
21 | # [SIGCHLD] | ||
22 | # [SIGCONT] | ||
23 | # [SIGSTOP] | ||
24 | # [SIGTSTP] | ||
25 | # [SIGTTIN] | ||
26 | # [SIGTTOU] | ||
27 | # [SIGURG] | ||
28 | # [SIGXCPU] | ||
29 | # [SIGXFSZ] | ||
30 | # [SIGVTALRM] | ||
31 | # [SIGPROF] | ||
32 | # [SIGWINCH] | ||
33 | # [SIGIO] | ||
34 | # [SIGPWR] | ||
35 | # [SIGSYS] | ||
5 | BenStaz | 36 | |
37 | !Hotkeys for some of the above symbols. | ||
38 | |||
39 | These hotkeys can be found by typing: | ||
40 | |||
41 | *stty -a | ||
42 | |||
7 | AndreasFerber | 43 | intr = ^C; quit = ^\; susp = ^Z |
5 | BenStaz | 44 | <verbatim> |
45 | intr = [SIGINT] | ||
46 | quit = [SIGQUIT] | ||
47 | susp = [SIGSTOP] | ||
48 | </verbatim> | ||
6 | BenStaz | 49 | |
50 | Some people have a misconception that CTRL-S and CTRL-Q send a [SIGSTOP] and [SIGCONT] signal respectively. | ||
51 | |||
52 | This is not the case! | ||
53 | |||
54 | CTRL-S and CTRL-Q are used to control the flow of output to the terminal. CTRL-S tells the system not to send any more data to the screen until a CTRL-Q is pressed. You can use these to control fast scrolling output. | ||
4 | IanMcDonald | 55 | |
56 | Here are a couple of pages that show how to code for signals:<br> | ||
57 | http://users.actcom.co.il/~choo/lupg/tutorials/signals/signals-programming.html<br> | ||
58 | http://www.gnu.org/software/libc/manual/html_node/Signal-Handling.html |
lib/blame.php:177: Warning: Invalid argument supplied for foreach()