git: 7a6364ac7733 - stable/13 - kqueue(2): Add note about format of the data for NOTE_EXIT

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Sat, 22 Jan 2022 00:50:28 UTC
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=7a6364ac7733bb3225285cdbd3119d124a56a802

commit 7a6364ac7733bb3225285cdbd3119d124a56a802
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-01-19 22:35:09 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-01-22 00:50:23 +0000

    kqueue(2): Add note about format of the data for NOTE_EXIT
    
    PR:     261346
    
    (cherry picked from commit 7406ec4ea99c1c61e88d5c98c58094093b9e78fb)
---
 lib/libc/sys/kqueue.2 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2
index ffcddc00303f..c9dc6bfb3faa 100644
--- a/lib/libc/sys/kqueue.2
+++ b/lib/libc/sys/kqueue.2
@@ -24,7 +24,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd October 6, 2021
+.Dd January 20, 2022
 .Dt KQUEUE 2
 .Os
 .Sh NAME
@@ -458,7 +458,9 @@ The events to monitor are:
 .It Dv NOTE_EXIT
 The process has exited.
 The exit status will be stored in
-.Va data .
+.Va data
+in the same format as the status returned by
+.Xr wait 2 .
 .It Dv NOTE_FORK
 The process has called
 .Fn fork .