Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Nov 1999 17:44:51 +0900
From:      "Daniel C. Sobral" <dcs@newsguy.com>
To:        Jos Backus <Jos.Backus@nl.origin-it.com>
Cc:        Sheldon Hearn <sheldonh@uunet.co.za>, Jos Backus <jbackus@plex.nl>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: ftpd feature: lock file being stored
Message-ID:  <38253C03.A7036A91@newsguy.com>
References:  <19991105111518.A2328@hal.mpn.cp.philips.com> <7173.941797101@axl.noc.iafrica.com> <19991105113929.B2328@hal.mpn.cp.philips.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jos Backus wrote:
> 
> 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.)

Actually, use fstat to check against ftpd, and lockf between the
scripts. :-)

--
Daniel C. Sobral			(8-DCS)
dcs@newsguy.com
dcs@freebsd.org

	What y'all wanna do?
	Wanna be hackers? Code crackers? Slackers
	Wastin' time with all the chatroom yakkers?


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?38253C03.A7036A91>