X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 	tests=AWL,BAYES_00,J_CHICKENPOX_52,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Eric Blake <ebb9@byu.net>
Subject:  Re: [1.7] flock change breaks autotools 'make -j2'
Date: Mon, 20 Apr 2009 15:14:49 +0000 (UTC)
Lines: 21
Message-ID:  <loom.20090420T150238-584@post.gmane.org>
References:  <loom.20090416T201917-225@post.gmane.org> <20090417100148.GD5200@calimero.vinschen.de> <49E87CFA.9070709@byu.net> <20090417133103.GG8722@calimero.vinschen.de>
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
Content-Transfer-Encoding:  7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:

> > > I'd prefer a testcase in C.
> > 
> > So would I.  I'm not even sure whether perl was using flock or
> > lockf/fcntl.  Do you still need me to try and write a STC, or at least
> > test how perl behaves with your first patch?
> 
> I checked in a patch which hopefully solves both problems.  The lock.pl
> testcase now works, at least.  Can you test if the original scenario
> works now as well?  If not, I'd really need another testcase.

Nope; with snapshot 20090418 I'm still seeing the 'make -j2' failures.  I'll 
see if I can come up with a C program that can be run as two processes to 
simulate the failure as a simpler test case.  I did verify via strace that perl 
is using flock(fd, LOCK_EX).

-- 
Eric Blake




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

