This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: Possible Bug in Pipes with Win95
- To: "'gnu-win32 at cygnus dot com'" <gnu-win32 at cygnus dot com>, "'David Devejian'" <widsith at panix dot com>
- Subject: RE: Possible Bug in Pipes with Win95
- From: Sergey Okhapkin <sos at prospect dot com dot ru>
- Date: Tue, 28 Oct 1997 11:11:32 +0300
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".