diff options
author | dzwdz | 2022-07-11 22:21:57 +0200 |
---|---|---|
committer | dzwdz | 2022-07-11 22:21:57 +0200 |
commit | 93af95b3419edfc127c6ea4245753540190c520e (patch) | |
tree | afacc32ba93239f2cde81efd35aacb015647cf99 /src/user/app/main.c | |
parent | 2e79a2e5af3affa7a6a3becdffb1c91d89af90af (diff) |
user: add shorthand close() and fork() wrappers for those syscalls
Diffstat (limited to 'src/user/app/main.c')
-rw-r--r-- | src/user/app/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/user/app/main.c b/src/user/app/main.c index e59b5a6..f87133e 100644 --- a/src/user/app/main.c +++ b/src/user/app/main.c @@ -37,7 +37,7 @@ int main(void) { MOUNT("/bind/", fs_passthru(NULL)); - if (_syscall_fork(0, NULL)) { + if (fork()) { /* (used to) expose a bug in the kernel * the program will flow like this: * 1. we launch the forked init @@ -54,7 +54,7 @@ int main(void) { _syscall_exit(1); } - if (!_syscall_fork(0, NULL)) { + if (!fork()) { if (!file_reopen(stdout, "/kdev/com1", 0)) { printf("couldn't open /kdev/com1\n"); // TODO borked _syscall_exit(1); @@ -69,7 +69,7 @@ int main(void) { } - if (!_syscall_fork(0, NULL)) { + if (!fork()) { if (!file_reopen(stdout, "/vga_tty", 0)) { printf("couldn't open /vga_tty\n"); // TODO borked _syscall_exit(1); |