From owner-freebsd-hackers Fri Nov 5 2:16: 4 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from gw-nl4.philips.com (gw-nl4.philips.com [192.68.44.36]) by hub.freebsd.org (Postfix) with ESMTP id 33C8D158DC for ; Fri, 5 Nov 1999 02:15:39 -0800 (PST) (envelope-from Jos.Backus@nl.origin-it.com) Received: from smtprelay-nl1.philips.com (localhost.philips.com [127.0.0.1]) by gw-nl4.philips.com with ESMTP id LAA16469 for ; Fri, 5 Nov 1999 11:15:13 +0100 (MET) (envelope-from Jos.Backus@nl.origin-it.com) Received: from smtprelay-eur1.philips.com(130.139.36.3) by gw-nl4.philips.com via mwrap (4.0a) id xma016460; Fri, 5 Nov 99 11:15:14 +0100 Received: from hal.mpn.cp.philips.com (hal.mpn.cp.philips.com [130.139.64.195]) by smtprelay-nl1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with SMTP id LAA07114 for ; Fri, 5 Nov 1999 11:15:10 +0100 (MET) Received: (qmail 4536 invoked by uid 666); 5 Nov 1999 10:15:18 -0000 Date: Fri, 5 Nov 1999 11:15:18 +0100 From: Jos Backus To: Sheldon Hearn Cc: Jos Backus , freebsd-hackers@freebsd.org Subject: Re: ftpd feature: lock file being stored Message-ID: <19991105111518.A2328@hal.mpn.cp.philips.com> Reply-To: Jos Backus References: <19991104230530.B84284@jos.bugworks.com> <6598.941795769@axl.noc.iafrica.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <6598.941795769@axl.noc.iafrica.com>; from sheldonh@uunet.co.za on Fri, Nov 05, 1999 at 11:56:09AM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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