Replace per thread P_CONTINUED with per process PS_CONTINUED flag
authorclaudio <claudio@openbsd.org>
Mon, 29 Jul 2024 09:49:49 +0000 (09:49 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 29 Jul 2024 09:49:49 +0000 (09:49 +0000)
commitc4fac75773b766dca329165c9cb4096ec71e1038
treeaf949aea7278f87d9ced67667371aa9955e03ea9
parent728f891c311ee5fa5f00b21c3ec7c596ea523f28
Replace per thread P_CONTINUED with per process PS_CONTINUED flag

dowait6() can only look at per process state so switch this over.
Right now SIGCONT handling in ptsignal is recursive and not quite
right but this is a step in the right direction. It fixes dowait6()
handling for multithreaded processes where the main thread exited.

OK mpi@
sys/kern/kern_exit.c
sys/kern/kern_sig.c
sys/sys/proc.h