summaryrefslogtreecommitdiff
path: root/Kernel/Process.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-11-28 22:01:24 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-11-28 22:01:24 +0100
commitd90104f9e00906ee4144e43d33cfb6ad3a9cc38d (patch)
tree559fbcc92ca3480cbcacef99bfa422af4cf6fa62 /Kernel/Process.h
parent938d1b8bfb2d05911ebf0f06b9d8e19a15f50630 (diff)
downloadserenity-d90104f9e00906ee4144e43d33cfb6ad3a9cc38d.zip
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.
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r--Kernel/Process.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index 2a03dcd400..029a1431b7 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -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 };