aboutsummaryrefslogtreecommitdiff
path: root/procps/kill.c
diff options
context:
space:
mode:
Diffstat (limited to 'procps/kill.c')
-rw-r--r--procps/kill.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/procps/kill.c b/procps/kill.c
index 695d266c5..6776d9546 100644
--- a/procps/kill.c
+++ b/procps/kill.c
@@ -8,6 +8,45 @@
8 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 8 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
9 */ 9 */
10 10
11//usage:#define kill_trivial_usage
12//usage: "[-l] [-SIG] PID..."
13//usage:#define kill_full_usage "\n\n"
14//usage: "Send a signal (default: TERM) to given PIDs\n"
15//usage: "\nOptions:"
16//usage: "\n -l List all signal names and numbers"
17/* //usage: "\n -s SIG Yet another way of specifying SIG" */
18//usage:
19//usage:#define kill_example_usage
20//usage: "$ ps | grep apache\n"
21//usage: "252 root root S [apache]\n"
22//usage: "263 www-data www-data S [apache]\n"
23//usage: "264 www-data www-data S [apache]\n"
24//usage: "265 www-data www-data S [apache]\n"
25//usage: "266 www-data www-data S [apache]\n"
26//usage: "267 www-data www-data S [apache]\n"
27//usage: "$ kill 252\n"
28//usage:
29//usage:#define killall_trivial_usage
30//usage: "[-l] [-q] [-SIG] PROCESS_NAME..."
31//usage:#define killall_full_usage "\n\n"
32//usage: "Send a signal (default: TERM) to given processes\n"
33//usage: "\nOptions:"
34//usage: "\n -l List all signal names and numbers"
35/* //usage: "\n -s SIG Yet another way of specifying SIG" */
36//usage: "\n -q Don't complain if no processes were killed"
37//usage:
38//usage:#define killall_example_usage
39//usage: "$ killall apache\n"
40//usage:
41//usage:#define killall5_trivial_usage
42//usage: "[-l] [-SIG] [-o PID]..."
43//usage:#define killall5_full_usage "\n\n"
44//usage: "Send a signal (default: TERM) to all processes outside current session\n"
45//usage: "\nOptions:"
46//usage: "\n -l List all signal names and numbers"
47//usage: "\n -o PID Don't signal this PID"
48/* //usage: "\n -s SIG Yet another way of specifying SIG" */
49
11#include "libbb.h" 50#include "libbb.h"
12 51
13/* Note: kill_main is directly called from shell in order to implement 52/* Note: kill_main is directly called from shell in order to implement