delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/02/10:52:42

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
Date: Mon, 2 May 2005 10:52:13 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Jerry D. Hedden" <jdhedden AT 1979 DOT usna DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: cygwin-1.5.16-1: FIFOs broken
In-Reply-To: <4274D150.9080309@1979.usna.com>
Message-ID: <Pine.GSO.4.61.0505021051000.5266@slinky.cs.nyu.edu>
References: <4274D150 DOT 9080309 AT 1979 DOT usna DOT com>
MIME-Version: 1.0

On Sun, 1 May 2005, Jerry D. Hedden wrote:

> >>>> However, that said, the above WJFFM.  In fact, it works more like
> >>>> linux in 1.5.16 than it does on 1.5.15, i.e., the cat command exits
> >>>> after printing "YOUR TEXT HERE" whereas it continues to block in
> >>>> 1.5.15.
>
> >> I tried the 4/30 snapshot of cygwin1.dll.  It exhibited the behavior
> >> you mentioned with the 'cat' exiting after it reads text.  However,
> >> this is a bad thing.  It means that the FIFO is being set EOF after
> >> there is no more data.  I tried my client-server app with the
> >> snapshot cygwin1.dll, and it failed because of this.
> >>
> >> It seems to me that the behavior of FIFOs under 1.5.15 was correct,
> >> and that under both 1.5.16 and the snapshot, FIFOs are now broken.
>
> > FWIW, I just tested your example under Solaris 8 and it works just
> > like Christopher describes.
>
> Okay.  I have seen the error of my ways.  I'm going to rewrite my app to use
> UPD instead.

Try running your test case using "cat <>/tmp/FIFO".  If it works, look at
the bash sources to see how the <> redirection is implemented, and use
that in your app.  It should be less effort than rewriting all of the
communication code (unless your app is very small).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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