summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordzwdz2021-10-13 21:48:20 +0200
committerdzwdz2021-10-13 21:48:20 +0200
commit04c907ca9e9ed5d2f05ebbdfc4fe47b9dc4a11e0 (patch)
treef2368c80c349f662e47b7e10b136b5e5055b8fad /src
parentfbca0c5aed51e46e82741d3ed7d8325361631f94 (diff)
init: kill the test_await process after the test finishes
Diffstat (limited to 'src')
-rw-r--r--src/init/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/init/main.c b/src/init/main.c
index a58efa6..5e40496 100644
--- a/src/init/main.c
+++ b/src/init/main.c
@@ -112,5 +112,7 @@ void test_await(void) {
while ((ret = _syscall_await()) != ~0)
printf("await returned: %x\n", ret);
printf("await: no more children\n");
+
+ _syscall_exit(0);
} else _syscall_await();
}