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/main.c | |
parent | 059ef013683e780a6603b228cd1fd8391d11494e (diff) |
user/libc: exit()
What an interesting commit.
Diffstat (limited to 'src/user/app/init/main.c')
-rw-r--r-- | src/user/app/init/main.c | 16 |
1 files changed, 8 insertions, 8 deletions
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); } |