freewrt_1_0
freewrt_2_0
|
Last change
on this file since c6b195c was c6b195c, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago |
|
use make update-patches to generate patches. start ucdhcp as background process, so that you can later attach a cable and still get an ip address without reboot. add address/broadcast parameters to ip link set
git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1215 afb5a338-a214-0410-bd46-81f09a774fd1
|
-
Property mode
set to
100644
|
|
File size:
939 bytes
|
| Line | |
|---|
| 1 | $FreeWRT$
|
|---|
| 2 | --- busybox-1.1.3.orig/procps/kill.c Wed Mar 22 22:16:25 2006
|
|---|
| 3 | +++ busybox-1.1.3/procps/kill.c Sat Nov 25 19:54:19 2006
|
|---|
| 4 | @@ -34,6 +34,7 @@
|
|---|
| 5 |
|
|---|
| 6 | #define KILL 0
|
|---|
| 7 | #define KILLALL 1
|
|---|
| 8 | +#define KILLALL5 2
|
|---|
| 9 |
|
|---|
| 10 | int kill_main(int argc, char **argv)
|
|---|
| 11 | {
|
|---|
| 12 | @@ -48,6 +49,9 @@ int kill_main(int argc, char **argv)
|
|---|
| 13 | #else
|
|---|
| 14 | whichApp = KILL;
|
|---|
| 15 | #endif
|
|---|
| 16 | +#ifdef CONFIG_KILLALL5
|
|---|
| 17 | + whichApp = (strcmp(bb_applet_name, "killall5") == 0)? KILLALL5 : whichApp;
|
|---|
| 18 | +#endif
|
|---|
| 19 |
|
|---|
| 20 | /* Parse any options */
|
|---|
| 21 | if (argc < 2)
|
|---|
| 22 | @@ -126,6 +130,20 @@ do_it_now:
|
|---|
| 23 | }
|
|---|
| 24 |
|
|---|
| 25 | }
|
|---|
| 26 | +#ifdef CONFIG_KILLALL5
|
|---|
| 27 | + else if (whichApp == KILLALL5) {
|
|---|
| 28 | + procps_status_t * p;
|
|---|
| 29 | + pid_t myPid=getpid();
|
|---|
| 30 | + while ((p = procps_scan(0)) != 0) {
|
|---|
| 31 | + if (p->pid != 1 && p->pid != myPid && p->pid != p->ppid) {
|
|---|
| 32 | + if (kill(p->pid, signo) != 0) {
|
|---|
| 33 | + bb_perror_msg( "Could not kill pid '%d'", p->pid);
|
|---|
| 34 | + errors++;
|
|---|
| 35 | + }
|
|---|
| 36 | + }
|
|---|
| 37 | + }
|
|---|
| 38 | + }
|
|---|
| 39 | +#endif
|
|---|
| 40 | #ifdef CONFIG_KILLALL
|
|---|
| 41 | else {
|
|---|
| 42 | pid_t myPid=getpid();
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.