From 577ed9e01a83c13bf151b5137e6fe1eace1c4f7c Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 2 May 2022 19:25:02 +0200 Subject: syscalls: fork() noreap flag --- 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 5601526..5db1333 100644 --- a/src/init/main.c +++ b/src/init/main.c @@ -28,7 +28,7 @@ int main(void) { MOUNT("/bind/", fs_passthru(NULL)); - if (_syscall_fork()) { + if (_syscall_fork(0)) { /* (used to) expose a bug in the kernel * the program will flow like this: * 1. we launch the forked init @@ -45,7 +45,7 @@ int main(void) { _syscall_exit(1); } - if (!_syscall_fork()) { + if (!_syscall_fork(0)) { if (file_open(&__stdout, "/com1") < 0 || file_open(&__stdin, "/com1") < 0) _syscall_exit(1); @@ -54,7 +54,7 @@ int main(void) { } - if (!_syscall_fork()) { + if (!_syscall_fork(0)) { if (file_open(&__stdout, "/vga_tty") < 0) _syscall_exit(1); -- cgit v1.2.3