git: newsyslog - Remove unneeded sleep

Antonio Huete Jimenez tuxillo at crater.dragonflybsd.org
Sun Jan 28 17:16:14 PST 2018


commit c72870e307194d16cceb265ed90a89a59680a2eb
Author: Antonio Huete Jimenez <tuxillo at quantumachine.net>
Date:   Mon Jan 29 01:34:42 2018 +0100

    newsyslog - Remove unneeded sleep
    
    Eliminate unnecessary sleep(10) when -R and -s are specified
    
    After going through the signal work list, during which do_sigwork()
    is called and essentially does nothing because -s and -R were
    specified on the command line, newsyslog will sleep for 10 seconds
    as the (verbose) code says: "Pause 10 seconds to allow daemon(s)
    to close log file(s)".
    
    However, the man page verbiage for -R (and -s) seems quite clear
    that this sleep() is unnecessary because the daemon was expected
    to have already closed the log file before calling newsyslog.
    
    Obtained-from: FreeBSD (r301532)

Summary of changes:
 usr.sbin/newsyslog/newsyslog.c | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c72870e307194d16cceb265ed90a89a59680a2eb


-- 
DragonFly BSD source repository



More information about the Commits mailing list