git: 1cced4932899 - main - pdfork.2: document EINVAL for pdwait(2)

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Tue, 07 Jul 2026 01:57:20 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=1cced493289962858c961b06b161b44ca43e7ac7

commit 1cced493289962858c961b06b161b44ca43e7ac7
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-05-20 02:05:02 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-07-07 01:27:10 +0000

    pdfork.2: document EINVAL for pdwait(2)
    
    Reviewed by:    markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D57124
---
 lib/libsys/pdfork.2 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/libsys/pdfork.2 b/lib/libsys/pdfork.2
index 3997570d2125..bf433509892a 100644
--- a/lib/libsys/pdfork.2
+++ b/lib/libsys/pdfork.2
@@ -232,6 +232,11 @@ The process descriptor being operated on has insufficient rights (e.g.
 .Dv CAP_PDKILL
 for
 .Fn pdkill ) .
+.It Bq Er EINVAL
+The
+.Fn pdwait
+function is called with reserved bits set in
+.Fa options .
 .El
 .Sh SEE ALSO
 .Xr close 2 ,