summaryrefslogtreecommitdiff
path: root/src/user/app/init/tests/semaphore.c
diff options
context:
space:
mode:
authordzwdz2022-07-26 22:21:52 +0200
committerdzwdz2022-07-26 22:34:22 +0200
commitd54dcb2efc4be344900a7721ac4b65b47840c5d2 (patch)
tree8d0b2a5158809fe64a40e3b362c01f1b2f22772e /src/user/app/init/tests/semaphore.c
parent059ef013683e780a6603b228cd1fd8391d11494e (diff)
user/libc: exit()
What an interesting commit.
Diffstat (limited to 'src/user/app/init/tests/semaphore.c')
-rw-r--r--src/user/app/init/tests/semaphore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/user/app/init/tests/semaphore.c b/src/user/app/init/tests/semaphore.c
index fc0cc10..e05f2f9 100644
--- a/src/user/app/init/tests/semaphore.c
+++ b/src/user/app/init/tests/semaphore.c
@@ -45,7 +45,7 @@ void test_semaphore(void) {
assert(sem1 && sem2);
if (!fork()) {
odd(pipe[1], sem1, sem2);
- _syscall_exit(69);
+ exit(69);
} else {
even(pipe[1], sem1, sem2);
assert(_syscall_await() == 69);
@@ -60,7 +60,7 @@ void test_semaphore(void) {
assert(sem1 && sem2);
if (!fork()) {
even(pipe[1], sem1, sem2);
- _syscall_exit(69);
+ exit(69);
} else {
odd(pipe[1], sem1, sem2);
assert(_syscall_await() == 69);
@@ -69,7 +69,7 @@ void test_semaphore(void) {
esem_free(sem1);
esem_free(sem2);
- _syscall_exit(0);
+ exit(0);
} else {
close(pipe[1]);