git: timeout(1): Tweak set_interval() to better handle zero interval

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


commit 1250177d745e59a3012be59532582c5808849c22
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Mar 11 17:46:45 2025 +0800

    timeout(1): Tweak set_interval() to better handle zero interval
    
    If the passed interval is zero, don't bother to calculate the 'tv_sec'
    and 'tv_usec' fields.

Summary of changes:
 usr.bin/timeout/timeout.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1250177d745e59a3012be59532582c5808849c22


-- 
DragonFly BSD source repository


More information about the Commits mailing list