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
Owner

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())

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())
asleepymoon added this to the (deleted) milestone 2022-10-08 15:58:12 +00:00
asleepymoon added the
enhancement
label 2022-10-08 15:58:12 +00:00
asleepymoon self-assigned this 2022-10-08 15:58:12 +00:00
asleepymoon added 1 commit 2022-10-08 15:58:13 +00:00
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())
asleepymoon merged commit 247645d301 into main 2022-10-08 15:58:52 +00:00
asleepymoon deleted branch exit_status 2022-10-08 15:58:52 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: asleepymoon/Luna#8
No description provided.