Peter Pentchev <[EMAIL PROTECTED]> writes:
> On Thu, Dec 28, 2000 at 01:44:34PM +0100, Dag-Erling Smorgrav wrote:
> > Volker Stolz <[EMAIL PROTECTED]> writes:
> > > On Thu, Dec 28, 2000 at 01:35:08PM +0100, Dag-Erling Smorgrav wrote:
> > > > What are you guys smoking?
> > > *shrug* Can you spell "event-driven"? There are ways to do things much
> > > more elegantly today (see all the references to kevent()).
> > I choose simple and working over elegant.
> I think opendir-readdir-closedir-sleep is a bit simpler than the locking
> you yourself admit is non-trivial :)

Locking in Perl is a known problem with a known solution which takes
me five or ten minutes to implement off the top of my head, and I
don't trust <insert your favorite startup script here> not to start
multiple copies of the spool scanner.

You can of course write the scanner in such a way that multiple
instances can run in paralell without harm even without locking; this
is left as an exercise for the reader.

DES
-- 
Dag-Erling Smorgrav - [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to