summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2022-04-21 19:05:31 +0200
committerdzwdz2022-04-21 19:05:31 +0200
commit0ae12266b7160272fd95875006c6c1b6d6b1dcd2 (patch)
tree1787cb9da8109185a3f9d8c28009a5ca3962364b /src/kernel/proc.h
parentd1af67ca27b1cf044244e61071fe2e538e452815 (diff)
kernel/proc: only kill deathbedded processes on switch attempt
this makes `process_transition` safe again, as it won't be able to free processes. it was a pretty unintuitive behaviour
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h
index 255a9af..9304f28 100644
--- a/src/kernel/proc.h
+++ b/src/kernel/proc.h
@@ -21,7 +21,7 @@ struct process {
struct registers regs;
enum process_state state;
- bool deathbed; // kill instead of switching to PS_RUNNING
+ bool deathbed; // kill on next process_switch attempt
struct process *sibling;
struct process *child;