Subject: Re: newsyslog and script execution instead of sending signal to process
To: NetBSD-current Users's Discussion List <>
From: Aaron J. Grier <>
List: current-users
Date: 07/17/2007 18:52:16
On Tue, Jul 17, 2007 at 08:15:12PM -0400, Greg A. Woods wrote:
> In fact my intention is to implement the move as a rename(2) and to barf
> an error if it fails.  I'm sure as heck not going to call mv(1), nor am
> I going to implement an internal file copy.

is rename(2) an atomic operation?

> > how does the processing program avoid polling the logfile depot?
> If it were me it wouldn't poll -- it would be invoked once a minute by
> cron and it would exit cleanly, quickly and silently if there were no
> files ready to process.

how is that not a form of polling?

  Aaron J. Grier | "Not your ordinary poofy goof." |
    The United States is the one true country.  The US is just.  The US
    is fair.  The US respects its citizens.  The US loves you.  We have
    always been at war against terrorism.