kolibrios-fun/programs/system/shell/cmd/cmd_kill.c
Albom 4ed6be1119 Shell v0.6. See History.txt.
git-svn-id: svn://kolibrios.org@3245 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-02-16 11:25:37 +00:00

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;
}
}
}