Commit | Line | Data |
---|---|---|
32424d04 C |
1 | KILL(1) BSD Reference Manual KILL(1) |
2 | ||
3 | N\bNA\bAM\bME\bE | |
4 | k\bki\bil\bll\bl - terminate or signal a process | |
5 | ||
6 | S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS | |
7 | k\bki\bil\bll\bl [-\b-s\bs _\bs_\bi_\bg_\bn_\ba_\bl_\b__\bn_\ba_\bm_\be] _\bp_\bi_\bd ... | |
8 | k\bki\bil\bll\bl -\b-l\bl [_\be_\bx_\bi_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs] | |
9 | k\bki\bil\bll\bl -\b-s\bsi\big\bgn\bna\bal\bl_\b_n\bna\bam\bme\be _\bp_\bi_\bd ... | |
10 | k\bki\bil\bll\bl -\b-s\bsi\big\bgn\bna\bal\bl_\b_n\bnu\bum\bmb\bbe\ber\br _\bp_\bi_\bd ... | |
11 | ||
12 | D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN | |
13 | The kill utility sends a signal to the processes specified by the pid | |
14 | operand(s). | |
15 | ||
16 | Only the super-user may send signals to other users' processes. | |
17 | ||
18 | The options are as follows: | |
19 | ||
20 | -\b-s\bs _\bs_\bi_\bg_\bn_\ba_\bl_\b__\bn_\ba_\bm_\be | |
21 | A symbolic signal name specifying the signal to be sent instead | |
22 | of the default TERM. | |
23 | ||
24 | -\b-l\bl [_\be_\bx_\bi_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs] | |
25 | If no operand is given, list the signal names; otherwise, write | |
26 | the signal name corresponding to _\be_\bx_\bi_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs. | |
27 | ||
28 | -\b-s\bsi\big\bgn\bna\bal\bl_\b_n\bna\bam\bme\be | |
29 | A symbolic signal name specifying the signal to be sent instead | |
30 | of the default TERM. | |
31 | ||
32 | -\b-s\bsi\big\bgn\bna\bal\bl_\b_n\bnu\bum\bmb\bbe\ber\br | |
33 | A non-negative decimal integer, specifying the signal to be sent | |
34 | instead of the default TERM. | |
35 | ||
36 | The following pids have special meanings: | |
37 | -1 If superuser, broadcast the signal to all processes; otherwise | |
38 | broadcast to all processes belonging to the user. | |
39 | ||
40 | Some of the more commonly used signals: | |
41 | 1 HUP (hang up) | |
42 | 2 INT (interrupt) | |
43 | 3 QUIT (quit) | |
44 | 6 ABRT (abort) | |
45 | 9 KILL (non-catchable, non-ignorable kill) | |
46 | 14 ALRM (alarm clock) | |
47 | 15 TERM (software termination signal) | |
48 | ||
49 | K\bKi\bil\bll\bl is a built-in to csh(1); it allows job specifiers of the form | |
50 | ``%...'' as arguments so process id's are not as often used as k\bki\bil\bll\bl argu- | |
51 | ments. See csh(1) for details. | |
52 | ||
53 | S\bSE\bEE\bE A\bAL\bLS\bSO\bO | |
54 | csh(1), ps(1), kill(2), sigvec(2) | |
55 | ||
56 | S\bST\bTA\bAN\bND\bDA\bAR\bRD\bDS\bS | |
57 | The k\bki\bil\bll\bl function is expected to be IEEE Std1003.2 (``POSIX'') compati- | |
58 | ble. | |
59 | ||
60 | H\bHI\bIS\bST\bTO\bOR\bRY\bY | |
61 | A k\bki\bil\bll\bl command appeared in Version 6 AT&T UNIX. | |
62 | ||
63 | B\bBU\bUG\bGS\bS | |
64 | A replacement for the command ``kill 0'' for csh(1) users should be pro- | |
65 | vided. | |
66 |