[Mirror] Some kind of OS: git://git.9front.org/plan9front/plan9front
Find a file
cinap_lenrek feda4b1ed2 kernel: add extra "New" process state to catch invalid state transitions
For ready() to check invalid state transitions,
we want to ensure that ready() is never called
on a dead proc (or one that is currently dying),
however when we create a new process,
its initial state was "Dead" until is is ready()d.

Instead, introduce the state "New", which is
set when the proc is removed from the freelist
by newproc(), making New -> Ready -> Running
state transition valid.

Also make sure we never leave notes to deadly
processes or ones that are in "Broken" state.
2024-01-04 04:45:56 +00:00
386
68000
68020
acme mkfiles: add 'mk test' support 2023-02-19 20:44:56 -05:00
adm/timezone
amd64
arm
arm64
lib /lib/terry: speak no ill of the dead 2023-12-02 18:16:14 +00:00
mips
power
power64
rc ethermultilink: ignore link-status of primary 2023-12-07 14:48:49 +00:00
sparc
sparc64
spim /spim/include/ape/ureg.h: fixed missing ifndef 2023-03-07 04:26:34 +00:00
sys kernel: add extra "New" process state to catch invalid state transitions 2024-01-04 04:45:56 +00:00