summaryrefslogtreecommitdiff
path: root/src/init
diff options
context:
space:
mode:
Diffstat (limited to 'src/init')
-rw-r--r--src/init/main.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/init/main.c b/src/init/main.c
index f1e1e22..06e48cf 100644
--- a/src/init/main.c
+++ b/src/init/main.c
@@ -29,7 +29,7 @@ int main(void) {
MOUNT("/bind", fs_passthru(NULL));
- if (!_syscall_fork()) {
+ if (false && !_syscall_fork()) {
__stdin = __stdout = _syscall_open(argify("/com1"));
if (__stdout < 0) _syscall_exit(1);
@@ -37,21 +37,21 @@ int main(void) {
_syscall_exit(1);
}
- /*
- * if (!_syscall_fork()) {
- * __stdout = _syscall_open(argify("/vga_tty"));
- * if (__stdout < 0) _syscall_exit(1);
-
- * __stdin = _syscall_open(argify("/keyboard"));
- * if (__stdin < 0) {
- * printf("couldn't open /keyboard\n");
- * _syscall_exit(1);
- * }
-
- * shell_loop();
- * _syscall_exit(1);
- * }
- */
+
+ if (!_syscall_fork()) {
+ __stdout = _syscall_open(argify("/vga_tty"));
+ if (__stdout < 0) _syscall_exit(1);
+
+ __stdin = _syscall_open(argify("/keyboard"));
+ if (__stdin < 0) {
+ printf("couldn't open /keyboard\n");
+ _syscall_exit(1);
+ }
+
+ shell_loop();
+ _syscall_exit(1);
+ }
+
// try to find any working output
__stdout = _syscall_open(argify("/com1"));