delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/11/21:23:40

X-Spam-Check-By: sourceware.org
Message-ID: <448CC20A.3F8C04A5@dessent.net>
Date: Sun, 11 Jun 2006 18:23:22 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: Barry Kelly <barry DOT j DOT kelly AT gmail DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: Cygwin1.dll 1.5.19: race condition & deadlock with fifos
References: <opdp821fkb16b0qj1b49h42ibrtjklkh8g AT 4ax DOT com>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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?

Brian

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019