From 5aaf1d48ec052d1582eae2c7642adc8829a6711b Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 22 Aug 2021 11:35:00 +0200 Subject: await() 2: pass the exit message --- src/kernel/proc.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/kernel/proc.h') diff --git a/src/kernel/proc.h b/src/kernel/proc.h index c4d9fe0..2f39f2e 100644 --- a/src/kernel/proc.h +++ b/src/kernel/proc.h @@ -19,6 +19,12 @@ struct process { struct process *parent; uint32_t id; // only for debugging, don't expose to userland + + // meaning changes depending on the state + // PS_DEAD - death message + // PS_WAITS4CHILDDEATH - buffer for said message + void *saved_addr; + size_t saved_len; }; extern struct process *process_first; -- cgit v1.2.3