bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cvs 1.11.2 buffer.c blocking socket/pipe w/bugfix


From: Derek Robert Price
Subject: Re: cvs 1.11.2 buffer.c blocking socket/pipe w/bugfix
Date: Wed, 25 Sep 2002 13:17:16 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0

Larry Jones wrote:
Derek Robert Price writes:
  
I assume you're checking:

  
Hmmm.. I have not tested it, but I suppose !feof(bc->fp) might work on
some platforms.
      

If so, it most definitely is *not* equivalent and does not work on any
platform.  feof() doesn't return true unless some actual I/O routine has
already encountered EOF, which won't ever have happened in normal
operation.  The call to getc() is an actual I/O that tests for EOF now.
  

Can you suggest an alternative to get around the blocking problem?

Derek
-- 
                *8^)

Email: address@hidden

Get CVS support at http://ximbiot.com
-- 
f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng


reply via email to

[Prev in Thread] Current Thread [Next in Thread]