diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-07-27 10:15:26 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-07-27 10:15:26 +0000 |
| commit | 2bacbbecb165dd761ea7ec2fc35630db61508cdf (patch) | |
| tree | d95ffb95fef0fc0a03e1992a882def84223c540f /lib | |
| parent | 407b7bcc93862fe0c026e254bac8ec0e8318e7e6 (diff) | |
kqueue: Add NOTE_REAP
Add a NOTE_REAP event for EVFILTER_PROC which provides a notification
when the process is reaped.
MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.
Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D58313
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libsys/kqueue.2 | 10 | ||||
| -rw-r--r-- | lib/libsysdecode/flags.c | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/lib/libsys/kqueue.2 b/lib/libsys/kqueue.2 index d2c6ed102f29..6d2a10b1b139 100644 --- a/lib/libsys/kqueue.2 +++ b/lib/libsys/kqueue.2 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd January 24, 2026 +.Dd July 22, 2026 .Dt KQUEUE 2 .Os .Sh NAME @@ -543,9 +543,15 @@ The exit status will be stored in .Va data in the same format as the status returned by .Xr wait 2 . +.It Dv NOTE_REAP +The process has been reaped by a call to the +.Xr wait 2 +family of functions. .It Dv NOTE_FORK The process has called -.Fn fork . +.Xr fork 2 +or +.Xr vfork 2 . .It Dv NOTE_EXEC The process has executed a new process via .Xr execve 2 diff --git a/lib/libsysdecode/flags.c b/lib/libsysdecode/flags.c index 880fe5e1ed49..b9af84a1ef52 100644 --- a/lib/libsysdecode/flags.c +++ b/lib/libsysdecode/flags.c @@ -377,7 +377,7 @@ static struct name_table kevent_vnode_fflags[] = { }; static struct name_table kevent_proc_fflags[] = { - X(NOTE_EXIT) X(NOTE_FORK) X(NOTE_EXEC) X(NOTE_PDSIGCHLD) + X(NOTE_EXIT) X(NOTE_FORK) X(NOTE_EXEC) X(NOTE_PDSIGCHLD) X(NOTE_REAP) X(NOTE_TRACK) X(NOTE_TRACKERR) X(NOTE_CHILD) XEND }; |
