diff --git a/src/bin/shell/commands.c b/src/bin/shell/commands.c index 0aab32b..7345874 100644 --- a/src/bin/shell/commands.c +++ b/src/bin/shell/commands.c @@ -59,19 +59,27 @@ else if (memcmp(data->args->arg,"stress", 6) == 0) { //for (i=0x0;i<100;i++) { while (1) { - printf("Starting Clock\n"); + /* printf("Starting Clock\n"); */ cPid = fork(); if (cPid == 0x0) { exec("clock",0x0,0x0); exit(0x1); - } - else { + } else { printf("Childs Pid: [%i]\n",cPid); while (pidStatus(cPid) > 0) sched_yield(); } + cPid = fork(); + if (cPid == 0x0) { + exec("ls", 0x0, 0x0); + exit(0x1); + } else { + printf("Childs Pid: [%i]\n",cPid); + while (pidStatus(cPid) > 0) + sched_yield(); } } + } else if (memcmp(data->args->arg,"test2", 5) == 0) { for (i=0x0;i<3;i++) { cPid = fork();