git: dfdd8af5a8de - main - pddupfd.2: fix errno value returned for non-procdesc argument

Konstantin Belousov <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a737e0c.3199d.3bab9b7__45656.2812485331$1785953918$gmane$org@gitrepo.freebsd.org>
The branch main has been updated by kib:

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

commit dfdd8af5a8de8f193747f5ec13cd501106823d2d
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-08-05 16:33:19 +0000
Commit:     Konstantin Belousov <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.