Subject: Re: newsyslog
To: Andy Doran <ad@netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: tech-userlevel
Date: 07/13/2000 10:09:29
>> that there would be no need for locking.  or are you trying to guard
>> against to instances of newsyslog running simultaneously not stepping
>> on each other's toes?
>
>Yes, trying to guard.

well...in that case, i'd be of the opinion that since (a) it's usually
only run from cron and (b) it is at bext *VERY* infrequently run by
hand (by no one i know), and (c) it also doesn't take long to do the
actual rotation (although the compression probably takes a good chunk
of time), that a simple lock that indicates that newsyslog is running
would be sufficient.  something to guard the "critical section" from
separate instances.

>>    alias hup 'kill -HUP `head -1 /var/run/\!$.pid`'
>
>FWIW newsyslog(8) does something functionally equivalent (in C).

i expected as much.

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."