forked from KolibriOS/kolibrios
4ed6be1119
git-svn-id: svn://kolibrios.org@3245 a494cfbc-eb01-0410-851d-a64ba20cac60
28 lines
321 B
C
28 lines
321 B
C
|
|
|
|
int cmd_kill(char process[])
|
|
{
|
|
|
|
unsigned proc;
|
|
int result;
|
|
|
|
if (NULL == process)
|
|
{
|
|
printf(" kill <PID>\n\r");
|
|
return FALSE;
|
|
}
|
|
else
|
|
{
|
|
proc = _atoi(process);
|
|
if ( 0 != proc )
|
|
{
|
|
result = kol_process_kill_pid(proc);
|
|
if (result < 0)
|
|
return FALSE;
|
|
else
|
|
return TRUE;
|
|
}
|
|
}
|
|
|
|
}
|