diff options
author | dzwdz | 2021-08-18 20:23:59 +0200 |
---|---|---|
committer | dzwdz | 2021-08-18 20:23:59 +0200 |
commit | c0a5b44bc8261dec6d4ffaadb244ecbff962719b (patch) | |
tree | 64043f4c174b1695541f4de2ee845681b14e300e /src/kernel/proc.h | |
parent | 349420c51fe05bfb23b6eb4d30aa1aad034d3c33 (diff) |
await() 1: wait for child to die, without message passing
The length is a int, because the syscall will have a signed output. A
negative return value will mean an error (such as when it gets called
by a childless process).
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r-- | src/kernel/proc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h index 6bafca9..c4d9fe0 100644 --- a/src/kernel/proc.h +++ b/src/kernel/proc.h @@ -3,7 +3,9 @@ enum process_state { PS_RUNNING, - PS_DEAD, + PS_DEAD, // return message wasn't collected + PS_DEADER, // return message was collected + PS_WAITS4CHILDDEATH, }; struct process { |