Rev 3247 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3247 | Rev 8827 | ||
---|---|---|---|
Line 1... | Line -... | ||
1 | int cmd_kill(char param[]) |
- | |
2 | { |
1 | int cmd_kill(char param[]) |
3 | 2 | { |
|
4 | unsigned process; |
- | |
5 | int result; |
3 | unsigned process; |
6 | int i; |
4 | int result; |
7 | 5 | int i; |
|
Line 8... | Line 6... | ||
8 | if ( strlen(param) == 0 ) |
6 | |
9 | { |
- | |
10 | printf(" kill |
7 | if ( strlen(param) == 0 ) { |
11 | return TRUE; |
8 | printf(CMD_KILL_USAGE); |
12 | } |
9 | return TRUE; |
Line 13... | Line 10... | ||
13 | 10 | } |
|
14 | if (!strcmp(param, "all")) |
- | |
15 | { |
11 | |
16 | for (i = 2;i<256;i++) |
- | |
17 | { |
12 | if (!strcmp(param, "all")) { |
18 | kol_kill_process(i); |
13 | for (i = 2;i<256;i++) { |
19 | } |
14 | kol_kill_process(i); |
20 | return TRUE; |
15 | } |
21 | } |
16 | return TRUE; |
22 | else |
- | |
23 | { |
17 | } |
24 | process = _atoi(param); |
18 | else { |
25 | if ( 0 != process ) |
- | |
26 | { |
19 | process = atoi(param); |
27 | result = kol_process_kill_pid(process); |
20 | if ( 0 != process ) { |
28 | if (result < 0) |
21 | result = kol_process_kill_pid(process); |
29 | return FALSE; |
22 | if (result < 0) |
30 | else |
23 | return FALSE; |