Kernel, libc: Add support for providing a status code to exit() #8

Merged
asleepymoon merged 1 commits from exit_status into main 2022-10-08 15:58:52 +00:00

1 Commits

Author SHA1 Message Date
f83a6ace51 Kernel, libc: Add support for providing a status code to exit()
The exit() libc function already accepted an integer, but didn't pass it on to the kernel since we had no mechanism for it to do that.
Now, the kernel stores a task's exit status to display it later (and in the future, return it to userspace via wait()/waitpid())
2022-10-08 17:56:40 +02:00