This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin-1.5.16-1: FIFOs broken


On Sat, Apr 30, 2005 at 08:38:17PM -0400, Jerry D. Hedden wrote:
>I have a client-server application written in Perl that reads and writes 
>using FIFOs.  It works fine under cygwin-1.5.15-1, but fails under 
>cygwin-1.5.16-1 because it cannot read from the FIFO.
>
>To test this, open two shells.  In one shell, type:
>cd /tmp
>mkfifo FIFO
>cat <FIFO
>
>In the other shell, you can send text to the first shell using:
>cd /tmp
>echo YOUR TEXT HERE >>FIFO
>
>After you're done, just ^C in the first window.
>
>Under 1.5.15, the above works fine.
>
>Under 1.5.16, no text goes through the FIFO.  Further, the echo command 
>hangs, and will not terminate with ^C.  A 'ps' shows an 'O' for this 
>stuck shell.  You have to do a kill -9 on the shell to terminate it.

As I mentioned in another enjoyable thread last week, fifos are only
just barely working in cygwin.  They are still a work in progress.

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.

cgf

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]