git: DragonFly_RELEASE_6_4 procctl(2): Implement PROC_REAP_KILL request to send signals
Aaron LI
aly at crater.dragonflybsd.org
Thu Nov 12 23:21:39 PST 2026
commit 57390d9e8070e20efeb40b551700e6d88e8e4c9d
Author: Aaron LI <aly at aaronly.me>
Date: Sat Mar 8 22:33:27 2025 +0800
procctl(2): Implement PROC_REAP_KILL request to send signals
The PROC_REAP_KILL request can be used to deliver a signal to the direct
children or all descendants of the reaper. For the latter case, the
signal will not be delivered to the descendants of any sub-reapers.
The similar request has been implemented in FreeBSD for many years, and
has been used in their timeout(1). Actually, our timeout(1) is
misbehaving if the '--foreground' flag is not specified. And that's one
of the main reasons to implement this request.
Mentored-by: dillon
Reviewed-by: dillon
Summary of changes:
lib/libc/sys/procctl.2 | 41 +++++++++++-
sys/kern/kern_fork.c | 166 +++++++++++++++++++++++++++++++++++++++++++++++++
sys/sys/param.h | 4 +-
sys/sys/proc.h | 3 +-
sys/sys/procctl.h | 21 +++++--
5 files changed, 227 insertions(+), 8 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/57390d9e8070e20efeb40b551700e6d88e8e4c9d
--
DragonFly BSD source repository
More information about the Commits
mailing list