summaryrefslogtreecommitdiff
path: root/src/init/main.c
diff options
context:
space:
mode:
authordzwdz2022-05-06 14:41:58 +0200
committerdzwdz2022-05-06 14:41:58 +0200
commit8ee57c885a72854d1884a886de4db538a8468e07 (patch)
tree9c9f2eea8d7667ce7ed45dd71b6bbde40ce93f7e /src/init/main.c
parent53d21d1ccb75004d0085efedd688b695707a3138 (diff)
syscalls: merge fork() and fs_fork2()
Diffstat (limited to 'src/init/main.c')
-rw-r--r--src/init/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/init/main.c b/src/init/main.c
index a5323a3..06c267a 100644
--- a/src/init/main.c
+++ b/src/init/main.c
@@ -33,7 +33,7 @@ int main(void) {
file_close(&__stdout);
- if (_syscall_fork(0)) {
+ if (_syscall_fork(0, NULL)) {
/* (used to) expose a bug in the kernel
* the program will flow like this:
* 1. we launch the forked init
@@ -50,7 +50,7 @@ int main(void) {
_syscall_exit(1);
}
- if (!_syscall_fork(0)) {
+ if (!_syscall_fork(0, NULL)) {
if (file_open(&__stdout, "/com1") < 0 || file_open(&__stdin, "/com1") < 0)
_syscall_exit(1);
@@ -59,7 +59,7 @@ int main(void) {
}
- if (!_syscall_fork(0)) {
+ if (!_syscall_fork(0, NULL)) {
if (file_open(&__stdout, "/vga_tty") < 0)
_syscall_exit(1);