Date: Fri, 5 Nov 1999 11:15:18 +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: <19991105111518.A2328@hal.mpn.cp.philips.com> In-Reply-To: <6598.941795769@axl.noc.iafrica.com>; from sheldonh@uunet.co.za on Fri, Nov 05, 1999 at 11:56:09AM %2B0200 References: <19991104230530.B84284@jos.bugworks.com> <6598.941795769@axl.noc.iafrica.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> So fstat(1) doesn't show you that the file is opened to ftpd?
No, it does indeed show that.
> You really have to lock the files to help you with this problem?
It seems a more natural solution to me than grepping for ftpd in fstat's
output regarding the file. Also, I think that approach introduces races when
you have more than one program/script polling the directory.
--
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?19991105111518.A2328>
