From: Ian Campbell Subject: Re: [PATCH] Fix locking in tools/hotplug/Linux/locking.sh Date: Tue, 13 Nov 2012 16:25:18 +0000 Message-ID: <1352823918.7491.96.camel@zakaz.uk.xensource.com> References: <1352469371-15457-1-git-send-email-jajcus@jajcus.net> <1352738557.27833.302.camel@zakaz.uk.xensource.com> <20121112180738.GA26672@aepfle.de> <20121112183457.GB2114@lolek.nigdzie> <20121112184047.GA28988@aepfle.de> <1352804909.7491.55.camel@zakaz.uk.xensource.com> <20121113132735.GD7561@jajo.eggsoft> <20642.29568.426761.422604@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20642.29568.426761.422604@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Olaf Hering , "xen-devel@lists.xensource.com" , Jacek Konieczny List-Id: xen-devel@lists.xenproject.org On Tue, 2012-11-13 at 16:21 +0000, Ian Jackson wrote: > Jacek Konieczny writes ("Re: [Xen-devel] [PATCH] Fix locking in tools/hotplug/Linux/locking.sh"): > > fcntl(3, F_GETFL) = 0x8401 (flags O_WRONLY|O_APPEND|O_LARGEFILE) > > So it seems perl is going out of its way to spot this earlier. > That explains the mystery. Looking at glibc it seems like it has had this test since the mid-nineties, so quite why we aren't seeing it elsewhere I can't explain (maybe bash buggily opens the fd RDWR?) > Anyway the patch is fine. > > Acked-by: Ian Jackson Yes, irrespective of why this patch does seem to be correct: Acked-by: Ian Campbell