git: timeout(1): Fix signal delivery bug by using PROC_REAP_KILL
Aaron LI
aly at crater.dragonflybsd.org
Tue Mar 18 19:35:54 PDT 2025
commit 56b83382cfa2fc025f804c8893308fd9bc5a8788
Author: Aaron LI <aly at aaronly.me>
Date: Sat Mar 8 22:50:11 2025 +0800
timeout(1): Fix signal delivery bug by using PROC_REAP_KILL
When the --foreground | -f option is not specified, timeout(1) should
send the signal to all the descendants. As we're using the procctl(2)
reaper framework, we were lacking the PROC_REAP_KILL request as in
FreeBSD that allows us to send the signal to all the descendants.
Now we've implemented the PROC_REAP_KILL request in procctl(2), so we
just use it and fix the signal delivery bug.
Summary of changes:
usr.bin/timeout/timeout.c | 29 ++++++++++++++++++-----------
1 file changed, 18 insertions(+), 11 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/56b83382cfa2fc025f804c8893308fd9bc5a8788
--
DragonFly BSD source repository
More information about the Commits
mailing list