Split PROC_DYING into DYING and DYING_ABORT
authorBarret Rhoden <brho@cs.berkeley.edu>
Sun, 31 Jul 2016 20:38:01 +0000 (16:38 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 1 Aug 2016 18:57:11 +0000 (11:57 -0700)
commitf10bf40001fe30b96245d68896d9c4db55d794bd
tree1407be230c235659e9f869fd572615a88b99a1dc
parent31f3a4156ea1b9e831463c1fceab5e5c7366892d
Split PROC_DYING into DYING and DYING_ABORT

This commit just splits out the state into two different states, but
does not differentiate between them yet.  Everywhere that was checking
DYING before now checks DYING and DYING_ABORT equally.

We will need this split to deal with issues closing FDs when processes
are DYING.  In short, if the chan release methods attempt to block on a
rendez, the syscalls will abort immediately, since DYING is set.

We DYING_ABORT is a DYING state, but specifically one where we want all
syscalls to abort.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
Documentation/processes.txt
kern/include/process.h
kern/src/arsc.c
kern/src/event.c
kern/src/mm.c
kern/src/process.c
kern/src/schedule.c
kern/src/syscall.c