git: e3ebc5f534ee - main - procctl(2): Clarify the ESRCH error code case

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Tue, 08 Oct 2024 16:58:23 UTC
The branch main has been updated by arrowd:

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

commit e3ebc5f534ee988d98c32b5e256ff08f71931225
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-10-08 12:27:40 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-10-08 16:58:17 +0000

    procctl(2): Clarify the ESRCH error code case
    
    Approved by: kib
    Differential Revision: https://reviews.freebsd.org/D47010
---
 lib/libsys/procctl.2 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/libsys/procctl.2 b/lib/libsys/procctl.2
index df8119799c6d..efb1812b284c 100644
--- a/lib/libsys/procctl.2
+++ b/lib/libsys/procctl.2
@@ -755,6 +755,10 @@ No processes matched the requested
 .Fa idtype
 and
 .Fa id .
+.It Bq Er ESRCH
+No descendant processes can be found matching criteria specified in the
+.Dv PROC_REAP_KILL
+request.
 .It Bq Er EINVAL
 An invalid operation or flag was passed in
 .Fa data