delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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" <dk AT artimi DOT com> |
To: | <cygwin AT cygwin DOT com> |
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 |
In-Reply-To: | <20041205145536.17e185b5@boing.blorch.org> |
Message-ID: | <NUTMEGxWkT3UwByV9I5000003a6@NUTMEG.CAM.ARTIMI.COM> |
X-OriginalArrivalTime: | 05 Dec 2004 23:32:39.0078 (UTC) FILETIME=[B5542C60:01C4DB22] |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |