[123] in Pthreads mailing list archive
Re: (f)read problem
daemon@ATHENA.MIT.EDU (Rich Salz)
Thu Sep 14 10:33:54 1995
From: Rich Salz <rsalz@osf.org>
Date: Thu, 14 Sep 1995 09:58:06 -0400
To: Ronald.Wahl@Informatik.TU-Chemnitz.DE
Cc: pthreads@MIT.EDU
> it's probably normal that I got sometimes less than
> 4096 bytes --> I have to read again from the socket.
Not if you are using fread. The whole point of fread is that it
does the buffering. If you get less then you asked for, then you
can safely assume that you've hit EOF. Sounds like there might be
a pthreads bug here.
/r$