Hi,
> @@ -303,6 +312,7 @@ struct process {
> #define PS_PLEDGE 0x00100000 /* Has called pledge(2) */
> #define PS_WXNEEDED 0x00200000 /* Process may violate W^X */
> #define PS_EXECPLEDGE 0x00400000 /* Has exec pledges */
> +#define PS_ORPHAN 0x00800000 /* Process is on an orphan list
> */
>
> #define PS_BITS \
> ("\20" "\01CONTROLT" "\02EXEC" "\03INEXEC" "\04EXITING" "\05SUGID" \
PS_ORPHAN entry needs to be added to PS_BITS.
Off topic to this diff: kern_exit.c is a weird mix of ISSET() and boolean
comparison with 1) flag_field & FLAG 2) == 0. Is it ok to send a follow-up diff
with ISSET() or !ISSET() as applicable throughout this file, so it reads easier?
Thanks