git: dfdd8af5a8de - main - pddupfd.2: fix errno value returned for non-procdesc argument
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Aug 2026 18:16:44 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=dfdd8af5a8de8f193747f5ec13cd501106823d2d
commit dfdd8af5a8de8f193747f5ec13cd501106823d2d
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-08-05 16:33:19 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-08-05 18:16:08 +0000
pddupfd.2: fix errno value returned for non-procdesc argument
Noted and reviewed by: lwhsu
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D58666
---
lib/libsys/pdfork.2 | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/libsys/pdfork.2 b/lib/libsys/pdfork.2
index 6f577427a716..3c18a0f4130c 100644
--- a/lib/libsys/pdfork.2
+++ b/lib/libsys/pdfork.2
@@ -391,16 +391,16 @@ returns the following errors:
The
.Fa flags
argument is not zero.
+.It Bq Er EINVAL
+The file descriptor
+.Fa fd
+is not a process file descriptor.
.It Bq Er ESRCH
The process specified by the file descriptor
.Fa fd
exited.
.It Bq Er EBADF
The file descriptor
-.Fa fd
-is not a process file descriptor.
-.It Bq Er EBADF
-The file descriptor
.Fa remotefd
is not a valid file descriptor in the specified process.
.It Bq Er ENOENT