Subject: Re: newsyslog
To: Andy Doran <firstname.lastname@example.org>
From: Andrew Brown <email@example.com>
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
>> alias hup 'kill -HUP `head -1 /var/run/\!$.pid`'
>FWIW newsyslog(8) does something functionally equivalent (in C).
i expected as much.
|-----< "CODE WARRIOR" >-----|
firstname.lastname@example.org * "ah! i see you have the internet
email@example.com (Andrew Brown) that goes *ping*!"
firstname.lastname@example.org * "information is power -- share the wealth."