Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Dave Korn" To: Subject: RE: Cygwin FIFO does not see EOF (NT4sp6, DLL 1.5.11) Date: Sun, 5 Dec 2004 23:32:38 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" In-Reply-To: <20041205145536.17e185b5@boing.blorch.org> Message-ID: X-OriginalArrivalTime: 05 Dec 2004 23:32:39.0078 (UTC) FILETIME=[B5542C60:01C4DB22] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id iB5NYLG0017864 > -----Original Message----- > From: cygwin-owner On Behalf Of Peter Åstrand > Sent: 05 December 2004 16:18 > To: cygwin > Subject: short fread(), but no ferror/feof > > > I've discovered that fread(ptr, size, nitems, stream) > sometimes returns a > value less than "nitems", but does not set feof() nor ferror(). > -----Original Message----- > From: cygwin-owner On Behalf Of Bob Smart > Sent: 05 December 2004 20:56 > To: cygwin > Subject: Cygwin FIFO does not see EOF (NT4sp6, DLL 1.5.11) > > It appears to me that pipe (FIFO) readers don't get the same > indication of EOF in Cygwin that they do in Linux. The > following Korn script works as I think it should with Linux: > at startup it shows that the FIFO doesn't exist and there's > no "cat" running; then it prints the test text; then it shows > that the FIFO and the "cat" go away. > > With Cygwin, the "cat" never finishes, even though nobody has > the pipe open for writing. Experimentation by running the > "echo" and "cat" manually (in separate shells and windows) > lead me to think that the "cat" simply never sees EOF on the > pipe. LOL! It's a conspiracy I tell ya! cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/