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/app/init/tests/pipe.c | |
parent | 059ef013683e780a6603b228cd1fd8391d11494e (diff) |
user/libc: exit()
What an interesting commit.
Diffstat (limited to 'src/user/app/init/tests/pipe.c')
-rw-r--r-- | src/user/app/init/tests/pipe.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/user/app/init/tests/pipe.c b/src/user/app/init/tests/pipe.c index f7005f8..d6e954a 100644 --- a/src/user/app/init/tests/pipe.c +++ b/src/user/app/init/tests/pipe.c @@ -28,7 +28,7 @@ void test_pipe(void) { ret = _syscall_write(ends[1], pipe_msgs[1], 5, -1); assert(ret == 5); - _syscall_exit(0); + exit(0); } else { assert(_syscall_read(ends[1], buf, 16, 0) < 0); assert(_syscall_write(ends[0], buf, 16, 0) < 0); @@ -56,7 +56,7 @@ void test_pipe(void) { if (!fork()) { close(ends[1]); assert(_syscall_read(ends[0], buf, 16, 0) < 0); - _syscall_exit(0); + exit(0); } } close(ends[1]); @@ -69,7 +69,7 @@ void test_pipe(void) { if (!fork()) { close(ends[0]); assert(_syscall_write(ends[1], buf, 16, 0) < 0); - _syscall_exit(0); + exit(0); } } close(ends[0]); @@ -83,7 +83,7 @@ void test_pipe(void) { for (int i = 0; i < 16; i++) { if (!fork()) { assert(_syscall_write(ends[1], pipe_msgs[0], 5, -1) == 5); - _syscall_exit(0); + exit(0); } } close(ends[1]); @@ -100,7 +100,7 @@ void test_pipe(void) { memset(buf, 0, sizeof buf); assert(_syscall_read(ends[0], buf, 5, -1) == 5); assert(!memcmp(buf, pipe_msgs[1], 5)); - _syscall_exit(0); + exit(0); } } close(ends[0]); |