If a proc has P_WEXIT set do not stop it, let it exit since it is already
authorclaudio <claudio@openbsd.org>
Thu, 18 Apr 2024 09:06:42 +0000 (09:06 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 18 Apr 2024 09:06:42 +0000 (09:06 +0000)
commitd7e8b29a3c7075ef6da13e4cd475a04a1ec490fd
tree08af29bdc03031a4d063b8830303b8ed1e9d3ec7
parentc0de6c7f07d7e4dcfdde2e7663c1c02686158c60
If a proc has P_WEXIT set do not stop it, let it exit since it is already
mostly dead.

This is more like belts and suspenders since a proc in exit1() will not
receive signals anymore and so proc_stop() should not be reachable. This
is even the case when sigexit() is called and a coredump() is happening.
OK mpi@
sys/kern/kern_sig.c