diff options
author | dzwdz | 2022-07-26 22:21:52 +0200 |
---|---|---|
committer | dzwdz | 2022-07-26 22:34:22 +0200 |
commit | d54dcb2efc4be344900a7721ac4b65b47840c5d2 (patch) | |
tree | 8d0b2a5158809fe64a40e3b362c01f1b2f22772e /src/user/lib/esemaphore.c | |
parent | 059ef013683e780a6603b228cd1fd8391d11494e (diff) |
user/libc: exit()
What an interesting commit.
Diffstat (limited to 'src/user/lib/esemaphore.c')
-rw-r--r-- | src/user/lib/esemaphore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user/lib/esemaphore.c b/src/user/lib/esemaphore.c index 3a4a836..70cedae 100644 --- a/src/user/lib/esemaphore.c +++ b/src/user/lib/esemaphore.c @@ -26,10 +26,10 @@ struct evil_sem *esem_new(int value) { while (_syscall_read(ends_signal[0], NULL, 0, 0) >= 0) { if (!_syscall_fork(FORK_NOREAP, NULL)) { _syscall_write(ends_wait[1], NULL, 0, 0); - _syscall_exit(0); + exit(0); } } - _syscall_exit(0); + exit(0); } close(ends_signal[0]); close(ends_wait[1]); |