SHELL 0.8.2

- big refactoring, now uses libc.obj
- added kfetch command

git-svn-id: svn://kolibrios.org@8827 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Rustem Gimadutdinov (rgimad)
2021-06-12 21:34:41 +00:00
parent 112c948922
commit 68cf3e4293
59 changed files with 1617 additions and 2317 deletions
+19 -26
View File
@@ -1,36 +1,29 @@
int cmd_kill(char param[])
{
unsigned process;
int result;
int i;
unsigned process;
int result;
int i;
if ( strlen(param) == 0 )
{
printf(" kill <PID>\n\r");
return TRUE;
if ( strlen(param) == 0 ) {
printf(CMD_KILL_USAGE);
return TRUE;
}
if (!strcmp(param, "all"))
{
for (i = 2;i<256;i++)
{
kol_kill_process(i);
if (!strcmp(param, "all")) {
for (i = 2;i<256;i++) {
kol_kill_process(i);
}
return TRUE;
}
else
{
process = _atoi(param);
if ( 0 != process )
{
result = kol_process_kill_pid(process);
if (result < 0)
return FALSE;
else
return TRUE;
return TRUE;
}
else {
process = atoi(param);
if ( 0 != process ) {
result = kol_process_kill_pid(process);
if (result < 0)
return FALSE;
else
return TRUE;
}
}