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] |
On Sun, Feb 14, 2010 at 08:54:27PM -0500, Christopher Faylor wrote: > I just checked in YA in my series of attempts to get this working right. > It will behave marginally better now but there are still problems if you > attempt to write to a fifo before anything is reading it and then try to > do a non-blocking read. Thank you for your efforts. It indeed works better with the 2010-02-15 snapshot. In order to help you pinpointing another glitch, I attach here a slightly slightly modified version of the original test case and a shell script. Launching the program in a terminal and then the shell script in another one, it seems that the program hangs on the write() call. Apparently, the problem is the O_RDWR flag, as replacing it with O_WRONLY, everything works. The test case works with O_RDWR both in cygwin 1.5 and linux. -- Enrico
Attachment:
fifotest.c
Description: Text document
Attachment:
fifotest.sh
Description: Bourne shell script
-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |