Rev 3247 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1665 | Nasarus | 1 | |
3247 | Albom | 2 | { |
1665 | Nasarus | 3 | unsigned process; |
8827 | rgimad | 4 | int result; |
5 | int i; |
||
6 | |||
1665 | Nasarus | 7 | |
8827 | rgimad | 8 | printf(CMD_KILL_USAGE); |
9 | return TRUE; |
||
10 | } |
||
1665 | Nasarus | 11 | |
3247 | Albom | 12 | |
8827 | rgimad | 13 | for (i = 2;i<256;i++) { |
14 | kol_kill_process(i); |
||
15 | } |
||
3247 | Albom | 16 | return TRUE; |
8827 | rgimad | 17 | } |
18 | else { |
||
19 | process = atoi(param); |
||
20 | if ( 0 != process ) { |
||
21 | result = kol_process_kill_pid(process); |
||
22 | if (result < 0) |
||
23 | return FALSE; |
||
24 | else |
||
25 | return TRUE; |
||
26 | } |
||
1665 | Nasarus | 27 | } |
28 | |||
29 | |||
30 |