From d1af67ca27b1cf044244e61071fe2e538e452815 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 21 Apr 2022 19:00:58 +0200 Subject: kernel: recursive kill() --- src/kernel/proc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/kernel/proc.h') diff --git a/src/kernel/proc.h b/src/kernel/proc.h index f0bae50..255a9af 100644 --- a/src/kernel/proc.h +++ b/src/kernel/proc.h @@ -3,6 +3,7 @@ #include #include #include +#include enum process_state { PS_RUNNING, @@ -20,6 +21,8 @@ struct process { struct registers regs; enum process_state state; + bool deathbed; // kill instead of switching to PS_RUNNING + struct process *sibling; struct process *child; struct process *parent; -- cgit v1.2.3