From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24139 invoked from network); 12 May 2006 07:54:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 May 2006 07:54:23 -0000 Received: (qmail 91636 invoked from network); 12 May 2006 07:54:14 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 May 2006 07:54:14 -0000 Received: (qmail 19733 invoked by alias); 12 May 2006 07:54:06 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10251 Received: (qmail 19723 invoked from network); 12 May 2006 07:54:06 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 12 May 2006 07:54:06 -0000 Received: (qmail 90692 invoked from network); 12 May 2006 07:54:06 -0000 Received: from vinc17.net8.nerim.net (HELO prunille.vinc17.org) (62.212.121.106) by a.mx.sunsite.dk with SMTP; 12 May 2006 07:54:04 -0000 Received: by prunille.vinc17.org (Postfix, from userid 501) id 7C6108ECB01; Fri, 12 May 2006 09:54:02 +0200 (CEST) Date: Fri, 12 May 2006 09:54:01 +0200 From: Vincent Lefevre To: zsh-users@sunsite.dk Subject: Re: File locking within zsh? Message-ID: <20060512075401.GN4116@prunille.vinc17.org> Mail-Followup-To: zsh-users@sunsite.dk References: <87r7324zyh.fsf@asfast.com> <009101c673f7$06b3f090$6500000a@venti> <20060510171305.GA4116@prunille.vinc17.org> <009d01c67511$f91c8ed0$6500000a@venti> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <009d01c67511$f91c8ed0$6500000a@venti> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.11-vl-20060510 On 2006-05-11 11:45:21 -0400, Brian K. White wrote: > > ----- Original Message ----- > From: "Vincent Lefevre" > To: > Sent: Wednesday, May 10, 2006 1:13 PM > Subject: Re: File locking within zsh? > > > >On 2006-05-10 01:59:57 -0400, Brian K. White wrote: > >>Is that better or worse, and why, than umask 222 ; >file ? > > > >Are you sure that this is guaranteed to work with any NFS server? > > Not at all sure, never having tried on any nfs mount. So, it's probably better to use the symbolic link solution (ln -s), which is guaranteed to be atomic, even on NFS. This is the solution chosen by Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=76431 -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA