Move knote_processexit() call from exit1() to the reaper().
authormillert <millert@openbsd.org>
Thu, 31 Mar 2022 01:41:22 +0000 (01:41 +0000)
committermillert <millert@openbsd.org>
Thu, 31 Mar 2022 01:41:22 +0000 (01:41 +0000)
commit26eeb0be5e3709df77142e374e46118a8417ca7e
tree41a41be3de4a219092e0ff71ad96951c994e6fe6
parent0726d1207d0c034cb9acde3ff0b12c3afc772e37
Move knote_processexit() call from exit1() to the reaper().
This fixes a problem where NOTE_EXIT could be received before
the process was officially a zombie and thus not immediately
waitable.  OK deraadt@ visa@
sys/kern/kern_event.c
sys/kern/kern_exit.c
sys/sys/event.h