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/
      |\      _,,,---,,_                [EMAIL PROTECTED]
ZZZzz /,`.-'`'    -.  ;-;;,_            [EMAIL PROTECTED]
     |,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/

Reply via email to