From 8ee57c885a72854d1884a886de4db538a8468e07 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 6 May 2022 14:41:58 +0200 Subject: syscalls: merge fork() and fs_fork2() --- src/init/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/init/main.c') 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); -- cgit v1.2.3