summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2021-08-22 11:35:00 +0200
committerdzwdz2021-08-22 11:35:00 +0200
commit5aaf1d48ec052d1582eae2c7642adc8829a6711b (patch)
tree40745bc8d62035b812c6f36f0629c13221ae42e3 /src/kernel/proc.h
parentc0a5b44bc8261dec6d4ffaadb244ecbff962719b (diff)
await() 2: pass the exit message
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h6
1 files changed, 6 insertions, 0 deletions
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;