diff options
author | Marvin Borner | 2020-05-07 18:10:22 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-07 18:10:22 +0200 |
commit | 4286b14839c0c4ec016d816e426660f6685ae349 (patch) | |
tree | ccfefa4313d012fb78d8252cff98d27dfd187dc8 /src/userspace/programs/sh.c | |
parent | 130121dd61a9adf70d1800ceb03007275bfb589d (diff) |
Fixed many bugs with wait() and fork()
This also adds many race conditions which really need to be fixed..
Diffstat (limited to 'src/userspace/programs/sh.c')
-rw-r--r-- | src/userspace/programs/sh.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/userspace/programs/sh.c b/src/userspace/programs/sh.c index bb1c9ea..12f8b2c 100644 --- a/src/userspace/programs/sh.c +++ b/src/userspace/programs/sh.c @@ -1,4 +1,7 @@ +#include <stdint.h> #include <stdio.h> +#include <stddef.h> +#include <common.h> #include <unistd.h> #include <syscall.h> #include <gui.h> @@ -7,9 +10,12 @@ void main() { printf("[~] "); - while (1) { - putch(getch()); - } + /* while (1) { */ + /* putch(getch()); */ + /* } */ - syscall_halt(); + /* syscall_halt(); */ + while (1) { + //printf("A"); + }; }
\ No newline at end of file |