1 diff -ruN busybox-1.2.0-old/include/applets.h busybox-1.2.0-new/include/applets.h
2 --- busybox-1.2.0-old/include/applets.h 2006-07-01 00:42:10.000000000 +0200
3 +++ busybox-1.2.0-new/include/applets.h 2006-07-31 00:29:34.000000000 +0200
5 USE_IPTUNNEL(APPLET(iptunnel, _BB_DIR_BIN, _BB_SUID_NEVER))
6 USE_KILL(APPLET(kill, _BB_DIR_BIN, _BB_SUID_NEVER))
7 USE_KILLALL(APPLET_ODDNAME(killall, kill, _BB_DIR_USR_BIN, _BB_SUID_NEVER, killall))
8 +USE_KILLALL5(APPLET_ODDNAME(killall5, kill, _BB_DIR_USR_BIN, _BB_SUID_NEVER, killall5))
9 USE_KLOGD(APPLET(klogd, _BB_DIR_SBIN, _BB_SUID_NEVER))
10 USE_LASH(APPLET(lash, _BB_DIR_BIN, _BB_SUID_NEVER))
11 USE_LAST(APPLET(last, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
12 diff -ruN busybox-1.2.0-old/include/usage.h busybox-1.2.0-new/include/usage.h
13 --- busybox-1.2.0-old/include/usage.h 2006-07-01 00:42:10.000000000 +0200
14 +++ busybox-1.2.0-new/include/usage.h 2006-07-31 00:25:57.000000000 +0200
15 @@ -1503,6 +1503,13 @@
16 #define killall_example_usage \
19 +#define killall5_trivial_usage \
21 +#define killall5_full_usage \
23 +#define killall5_example_usage \
26 #define klogd_trivial_usage \
28 #define klogd_full_usage \
29 diff -ruN busybox-1.2.0-old/procps/Config.in busybox-1.2.0-new/procps/Config.in
30 --- busybox-1.2.0-old/procps/Config.in 2006-07-01 00:42:12.000000000 +0200
31 +++ busybox-1.2.0-new/procps/Config.in 2006-07-31 00:25:57.000000000 +0200
33 specified commands. If no signal name is specified, SIGTERM is
36 +config CONFIG_KILLALL5
39 + depends on CONFIG_KILL
44 diff -ruN busybox-1.2.0-old/procps/kill.c busybox-1.2.0-new/procps/kill.c
45 --- busybox-1.2.0-old/procps/kill.c 2006-07-01 00:42:12.000000000 +0200
46 +++ busybox-1.2.0-new/procps/kill.c 2006-07-31 00:25:57.000000000 +0200
53 int kill_main(int argc, char **argv)
59 +#ifdef CONFIG_KILLALL5
60 + whichApp = (strcmp(bb_applet_name, "killall5") == 0)? KILLALL5 : whichApp;
63 /* Parse any options */
69 +#ifdef CONFIG_KILLALL5
70 + else if (whichApp == KILLALL5) {
71 + procps_status_t * p;
72 + pid_t myPid=getpid();
73 + while ((p = procps_scan(0)) != 0) {
74 + if (p->pid != 1 && p->pid != myPid && p->pid != p->ppid) {
75 + if (kill(p->pid, signo) != 0) {
76 + bb_perror_msg( "Could not kill pid '%d'", p->pid);