This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Cygwin1.dll 1.5.19: race condition & deadlock with fifos
- From: Brian Dessent <brian at dessent dot net>
- To: Barry Kelly <barry dot j dot kelly at gmail dot com>
- Cc: cygwin at cygwin dot com
- Date: Sun, 11 Jun 2006 18:23:22 -0700
- Subject: Re: Cygwin1.dll 1.5.19: race condition & deadlock with fifos
- References: <opdp821fkb16b0qj1b49h42ibrtjklkh8g@4ax.com>
- Reply-to: 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/