git: 0f1718e0d588 - main - pdwait(2): make debugging events functional
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Jul 2026 03:12:54 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=0f1718e0d588375d6ab6be52f5253fe143c5c75f
commit 0f1718e0d588375d6ab6be52f5253fe143c5c75f
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-07-11 15:50:26 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-07-13 03:12:39 +0000
pdwait(2): make debugging events functional
We need to wake up the pdwait(2) waiters when procdesc event is
reported.
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D58172
---
sys/kern/sys_procdesc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/kern/sys_procdesc.c b/sys/kern/sys_procdesc.c
index 0d26c2031b28..710d4d5aea5a 100644
--- a/sys/kern/sys_procdesc.c
+++ b/sys/kern/sys_procdesc.c
@@ -369,6 +369,7 @@ procdesc_jobstate(struct proc *p)
PROCDESC_LOCK(pd);
KNOTE_LOCKED(&pd->pd_selinfo.si_note, NOTE_PDSIGCHLD);
PROCDESC_UNLOCK(pd);
+ wakeup(&p->p_procdesc);
}
/*