mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-24 07:36:48 +03:00
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;
|
|
}
|
|
}
|
|
|
|
}
|