summaryrefslogtreecommitdiff
path: root/src/user/app/init/tests/stress.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app/init/tests/stress.c')
-rw-r--r--src/user/app/init/tests/stress.c4
1 files changed, 2 insertions, 2 deletions
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();
}
}