This is the mail archive of the cygwin@sourceware.cygnus.com 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]

RE: Possible Bug in Pipes with Win95


David Devejian wrote:
> I am having trouble implementing pipes with win95, namely, the process 
reading the pipe does not see the EOF when the writing process closes the 
file.
>
> With plain cygwin32 b18, the program would sometimes blow-up, sometimes 
hang, and occassionally run correctly.  With the installation of the 
coolview patches, the error is atleast consistent, the program hangs after 
all data has been read from the pipe, but never detects the EOF.
>

It's well known programmer's mistake :-) Close read end of pipe in the 
parent after fork(), and write end in the child.

--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
Looking for a job.


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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