X-Spam-Check-By: sourceware.org
From: Barry Kelly <barry.j.kelly@gmail.com>
To: Brian Dessent <brian@dessent.net>
Cc: cygwin@cygwin.com
Subject: Re: Cygwin1.dll 1.5.19: race condition & deadlock with fifos
Date: Mon, 12 Jun 2006 02:42:24 +0100
Message-ID: <7ehp8297uidfoahijrfnugi6rvukrt9g5f@4ax.com>
References: <opdp821fkb16b0qj1b49h42ibrtjklkh8g@4ax.com> <448CC20A.3F8C04A5@dessent.net>
In-Reply-To: <448CC20A.3F8C04A5@dessent.net>
X-Mailer: Forte Agent 3.3/32.846
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k5C1gUDL010275

On Sun, 11 Jun 2006 18:23:22 -0700, you wrote:

> Barry Kelly wrote:
> 
> > This code, without a delay, causes a deadlock and both active spawned
> > bash processes (the forked one reading from the fifo and the
> > backgrounded one) need to be killed explicitly:
> > 
> > ---8<---
> > ~/test-fifo$ rm fifo
> > ~/test-fifo$ mkfifo fifo
> > ~/test-fifo$ ((echo foo >fifo)&); echo Read: $(<fifo)
> > --->8---
> 
> This works fine for me, no hang -- but I use a recent CVS build.  Have
> you tried the latest shapshot?

I have just tried:

        DLL version: 1.5.20
...
        Build date: Sun Jun 4 16:35:33 EDT 2006
        Snapshot date: 20060604-16:33:54

And I find it has fixed the problem. Thanks!

Is there any indication as to how long before 1.5.20 will be fully
released? I don't want to risk running under a CVS snapshot except for
this test.

-- Barry

-- 
http://barrkel.blogspot.com/

--
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/


