git: timeout(1): Catch all signals and propagate them
Aaron LI
aly at crater.dragonflybsd.org
Tue Mar 18 19:35:54 PDT 2025
commit 13eb7f38ede3f73ecb16d7f0fe4a9d3679e860c5
Author: Aaron LI <aly at aaronly.me>
Date: Tue Mar 11 17:44:36 2025 +0800
timeout(1): Catch all signals and propagate them
The POSIX.1-2024 standard requires that timeout(1) utility propagate all
signals except SIGALRM, so timeout(1) needs to catch all signals for
this purpose. In addition, we need to separate those signals whose
default action is to terminate the program, because timeout(1) should
start the second timer for the kill signal if those signals are
received.
Reference: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/timeout.html
Summary of changes:
usr.bin/timeout/timeout.c | 110 +++++++++++++++++++++++++++-------------------
1 file changed, 65 insertions(+), 45 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/13eb7f38ede3f73ecb16d7f0fe4a9d3679e860c5
--
DragonFly BSD source repository
More information about the Commits
mailing list