git: timeout(1): Fix the inheritance of signal dispositions

Aaron LI aly at crater.dragonflybsd.org
Tue Mar 18 19:35:54 PDT 2025


commit 630684f4fcd00c3f71ca23b64fd0a4932a70aa31
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Mar 4 19:02:00 2025 +0800

    timeout(1): Fix the inheritance of signal dispositions
    
    POSIX.1-2024 requires that the child process inherit the same signal
    dispositions as the timeout(1) utility inherited, except for the signal
    to be sent upon timeout.
    
    For example, when timeout(1) is run by nohup(1), the command should be
    protected from SIGHUP.

Summary of changes:
 usr.bin/timeout/timeout.c | 50 ++++++++++++++++++++++++++++-------------------
 1 file changed, 30 insertions(+), 20 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/630684f4fcd00c3f71ca23b64fd0a4932a70aa31


-- 
DragonFly BSD source repository


More information about the Commits mailing list