diff options
author | dzwdz | 2022-05-02 19:25:02 +0200 |
---|---|---|
committer | dzwdz | 2022-05-02 19:25:02 +0200 |
commit | 577ed9e01a83c13bf151b5137e6fe1eace1c4f7c (patch) | |
tree | 750dd8a3536ce70d817e6920c89042ee94899a29 /src/init/main.c | |
parent | d9dc6a0c4c5047c3789a16ef623eeff7c240f5a9 (diff) |
syscalls: fork() noreap flag
Diffstat (limited to 'src/init/main.c')
-rw-r--r-- | src/init/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |