HomeFreeBSD

procctl(PROC_REAP_KILL): align error reporting with pgkill(2)

Description

procctl(PROC_REAP_KILL): align error reporting with pgkill(2)

ESRCH from cr_cansignal() means that the target process should be not
visible to the initiator. So do not report pids with ESRCH result.

Noted by: markj
Reviewed by: markj, olce
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D55341

Details

Provenance
kibAuthored on Feb 18 2026, 8:22 AM
Reviewer
markj
Differential Revision
D55341: procctl(PROC_REAP_KILL): align error reporting with pgkill(2)
Parents
rG0e67c3f675ea: reap_kill_subtree_once(): reap_kill_proc_work() might drop proctree_lock
Branches
Unknown
Tags
Unknown