Revert "kqueue: on process exit, force-clear its registered signal events"

This reverts commit 393ac29f0b.  A
different fix is following, which preserves semantic, required by the
sys.kqueue.proc3_test.proc3 test.

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
PR:	275286
Differential revision:	https://reviews.freebsd.org/D42777
This commit is contained in:
Konstantin Belousov 2023-11-28 14:32:24 +02:00
parent f97aab7986
commit 877ef68532

View file

@ -983,7 +983,6 @@ proc_reap(struct thread *td, struct proc *p, int *status, int options)
proc_id_clear(PROC_ID_PID, p->p_pid);
PROC_LOCK(p);
knlist_delete(p->p_klist, td, 1);
knlist_detach(p->p_klist);
p->p_klist = NULL;
PROC_UNLOCK(p);