diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/init/shell.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/init/shell.c b/src/init/shell.c index 6b195cc..6e1dee2 100644 --- a/src/init/shell.c +++ b/src/init/shell.c @@ -72,6 +72,9 @@ void shell_loop(void) { cmd_cat(args); } else if (!strcmp(cmd, "exit")) { _syscall_exit(0); + } else if (!strcmp(cmd, "fork")) { + if (_syscall_fork()) + _syscall_await(); } else { printf("unknown command :(\n"); } |