Subversion Repositories Kolibri OS

Rev

Rev 8662 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8827 rgimad 1
 
8662 turbocat 2
{
3
    int i = 1, n = 0; int process_count = 0;
8827 rgimad 4
    char *buf1k = NULL;
5
    unsigned PID=0;
8662 turbocat 6
7
 
8
        printf(CMD_PKILL_HELP);
8827 rgimad 9
        return TRUE;
8662 turbocat 10
	}
11
12
 
13
    if (buf1k == NULL){
8827 rgimad 14
        return FALSE;
8662 turbocat 15
    }
16
17
 
8827 rgimad 18
	    n = kol_process_info(i, buf1k);
8662 turbocat 19
        if(!strnicmp(buf1k+10, param, 10)){
20
            memcpy(&PID, buf1k+30 ,sizeof(unsigned));
21
            if(kol_process_kill_pid(PID)){
22
                printf(CMD_PKILL_NOT_KILL, PID);
8827 rgimad 23
            }else{
8662 turbocat 24
                printf(CMD_PKILL_KILL, PID);
8827 rgimad 25
            }
8662 turbocat 26
            process_count++;
27
        }
28
        i++;
29
    }
30
31
 
32
        printf(CMD_PKILL_NOT_FOUND);
8827 rgimad 33
    }
8662 turbocat 34
35
 
36
    return TRUE;
37
}
38