From d54dcb2efc4be344900a7721ac4b65b47840c5d2 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 26 Jul 2022 22:21:52 +0200 Subject: user/libc: exit() What an interesting commit. --- src/user/app/init/tests/stress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/user/app/init/tests/stress.c') diff --git a/src/user/app/init/tests/stress.c b/src/user/app/init/tests/stress.c index e620f0a..9be88d7 100644 --- a/src/user/app/init/tests/stress.c +++ b/src/user/app/init/tests/stress.c @@ -7,7 +7,7 @@ static void run_forked(void (*fn)()) { if (!fork()) { fn(); - _syscall_exit(0); + exit(0); } else { /* successful tests must return 0 * TODO add a better fail msg */ @@ -18,7 +18,7 @@ static void run_forked(void (*fn)()) { static void stress_fork(void) { for (size_t i = 0; i < 2048; i++) { - if (!fork()) _syscall_exit(0); + if (!fork()) exit(0); _syscall_await(); } } -- cgit v1.2.3