delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/10/28/00:32:40

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: Possible Bug in Pipes with Win95
28 Oct 1997 00:32:40 -0800 :
Message-ID: <01BCE392.4012B730.cygnus.gnu-win32@gater.krystalbank.msk.ru>
To: "'gnu-win32 AT cygnus DOT com'" <gnu-win32 AT cygnus DOT com>,
"'David Devejian'"
<widsith AT panix DOT com>

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019