Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Nov 1999 11:39:29 +0100
From:      Jos Backus <Jos.Backus@nl.origin-it.com>
To:        Sheldon Hearn <sheldonh@uunet.co.za>
Cc:        Jos Backus <jbackus@plex.nl>, freebsd-hackers@freebsd.org
Subject:   Re: ftpd feature: lock file being stored
Message-ID:  <19991105113929.B2328@hal.mpn.cp.philips.com>
In-Reply-To: <7173.941797101@axl.noc.iafrica.com>; from sheldonh@uunet.co.za on Fri, Nov 05, 1999 at 12:18:21PM %2B0200
References:  <19991105111518.A2328@hal.mpn.cp.philips.com> <7173.941797101@axl.noc.iafrica.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 05, 1999 at 12:18:21PM +0200, Sheldon Hearn wrote:
> Then use fstat. :-)

OK, OK :)

> I think you've developed a complex solution to a more simply solved
> problem.  UNIX offers you lots of little tools for good reason.  Adding
> functionality to ftpd that is available through other tools doesn't seem
> wise to me.

I'm not yet convinced that your solution does what I want in a reliable
fashion.

> What does "polling the directory" mean?

Scanning the directory for new files, as the aforementioned script does. If
you have more than one script doing this at the same time, both may conclude
that a given file is ``available'' and try to act upon it. Inevitably, one of
those scripts will fail. Hence my solution. But maybe I don't quite understand
the problem :-)

(Yes, I know you will say, "Don't run more than one script at a time then.".
But whether this is possible really depends on the application and moreover
seems to be an unecessary restriction.)

Cheers,
-- 
Jos Backus                          _/ _/_/_/  "Reliability means never
                                   _/ _/   _/   having to say you're sorry."
                                  _/ _/_/_/             -- D. J. Bernstein
                             _/  _/ _/    _/
Jos.Backus@nl.origin-it.com  _/_/  _/_/_/      use Std::Disclaimer;


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991105113929.B2328>