From 93af95b3419edfc127c6ea4245753540190c520e Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 11 Jul 2022 22:21:57 +0200 Subject: user: add shorthand close() and fork() wrappers for those syscalls --- src/user/tests/stress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/user/tests/stress.c') diff --git a/src/user/tests/stress.c b/src/user/tests/stress.c index 51b9c4e..5d29e87 100644 --- a/src/user/tests/stress.c +++ b/src/user/tests/stress.c @@ -5,7 +5,7 @@ #include static void run_forked(void (*fn)()) { - if (!_syscall_fork(0, NULL)) { + if (!fork()) { fn(); _syscall_exit(0); } else { @@ -18,7 +18,7 @@ static void run_forked(void (*fn)()) { static void stress_fork(void) { for (size_t i = 0; i < 2048; i++) { - if (!_syscall_fork(0, NULL)) _syscall_exit(0); + if (!fork()) _syscall_exit(0); _syscall_await(); } } -- cgit v1.2.3