summaryrefslogtreecommitdiff
path: root/src/user/tests/stress.c
diff options
context:
space:
mode:
authordzwdz2022-07-11 22:21:57 +0200
committerdzwdz2022-07-11 22:21:57 +0200
commit93af95b3419edfc127c6ea4245753540190c520e (patch)
treeafacc32ba93239f2cde81efd35aacb015647cf99 /src/user/tests/stress.c
parent2e79a2e5af3affa7a6a3becdffb1c91d89af90af (diff)
user: add shorthand close() and fork() wrappers for those syscalls
Diffstat (limited to 'src/user/tests/stress.c')
-rw-r--r--src/user/tests/stress.c4
1 files changed, 2 insertions, 2 deletions
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 <shared/syscalls.h>
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();
}
}