summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h
index 0efccde..5d9e7eb 100644
--- a/src/kernel/proc.h
+++ b/src/kernel/proc.h
@@ -24,11 +24,13 @@ struct process {
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
- user_ptr saved_addr;
- size_t saved_len;
+ // saved value, meaning depends on .state
+ union {
+ struct { // PS_DEAD, PS_WAITS4CHILDDEATH
+ user_ptr buf;
+ size_t len;
+ } death_msg;
+ };
struct vfs_mount *mount;