1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00

Let reap() communicate the dead process's exit status to the caller.

This way the scheduler doesn't need to plumb the exit status into the waiter.
We still plumb the waitee pid though, I don't love it but it can be fixed.
This commit is contained in:
Andreas Kling 2018-11-28 22:01:24 +01:00
parent 938d1b8bfb
commit d90104f9e0
4 changed files with 18 additions and 14 deletions

View file

@ -177,7 +177,7 @@ public:
static void initialize();
void crash() NORETURN;
static void reap(Process&);
static int reap(Process&) WARN_UNUSED_RESULT;
const TTY* tty() const { return m_tty; }
@ -267,7 +267,6 @@ private:
void* m_kernelStack { nullptr };
dword m_timesScheduled { 0 };
pid_t m_waitee { -1 };
int m_waitee_status { 0 };
int m_fdBlockedOnRead { -1 };
int m_blocked_fd { -1 };
size_t m_max_open_file_descriptors { 16 };