This is the mail archive of the cygwin 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]
Other format: [Raw text]

RE: Cygwin FIFO does not see EOF (NT4sp6, DLL 1.5.11)


> -----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/


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