From d54dcb2efc4be344900a7721ac4b65b47840c5d2 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 26 Jul 2022 22:21:52 +0200 Subject: user/libc: exit() What an interesting commit. --- src/user/app/init/main.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/user/app/init/main.c') diff --git a/src/user/app/init/main.c b/src/user/app/init/main.c index 71220af..426933f 100644 --- a/src/user/app/init/main.c +++ b/src/user/app/init/main.c @@ -38,40 +38,40 @@ int main(void) { * of a dead process, which is invalid state */ _syscall_await(); - _syscall_exit(1); + exit(1); } if (!fork()) { if (!freopen("/kdev/com1", "a+", stdout)) { printf("couldn't open /kdev/com1\n"); // TODO borked - _syscall_exit(1); + exit(1); } if (!freopen("/kdev/com1", "r", stdin)) { printf("couldn't open /kdev/com1\n"); - _syscall_exit(1); + exit(1); } termcook(); shell_loop(); - _syscall_exit(1); + exit(1); } if (!fork()) { if (!freopen("/vga_tty", "a+", stdout)) { printf("couldn't open /vga_tty\n"); // TODO borked - _syscall_exit(1); + exit(1); } if (!freopen("/keyboard", "r", stdin)) { printf("couldn't open /keyboard\n"); - _syscall_exit(1); + exit(1); } termcook(); shell_loop(); - _syscall_exit(1); + exit(1); } _syscall_await(); printf("init: quitting\n"); - _syscall_exit(0); + exit(0); } -- cgit v1.2.3