delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/02/02:36:28

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
X-Authentication-Warning: ares.its.yale.edu: lsb32 owned process doing -bs
Date: Mon, 2 May 2005 02:36:12 -0400 (EDT)
From: Lev S Bishop <lev DOT bishop AT yale DOT edu>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin-1.5.16-1: FIFOs broken
Message-ID: <Pine.LNX.4.44.0505020202360.24228-100000@ares.its.yale.edu>
MIME-Version: 1.0
X-YaleITSMailFilter: Version 1.2b (attachment(s) not renamed)

cgf wrote:

> I thought that maybe something like:
>  
> cat < FIFO 42>FIFO
>
> might work since that would cause cat to keep FIFO open for input and
> output but that just hangs on both cygwin and linux.

Probably the right thing to do is:
in one shell:
$ cat < fifo

in the other shell:
$ exec 6>fff
$ echo hello >&6
$ echo more >&6
....
$ exec 6>&-

(or something similar).

Or a more similar approach to your one also seems to work:

$ cat <> fifo

One thing that is different on cygwin to linux, is if there are multiple 
readers of a fifo.

shell 1:
$ cat fifo

shell 2:
$ cat fifo

On linux, both keep waiting for someone to write to the fifo. 
On cygwin, when the second cat tries to listen on the fifo, they both 
exit. I don't know how fifos are supposed to work, but I'm guessing cygwin 
gets it wrong here.

Lev



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