[121] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

(f)read problem

daemon@ATHENA.MIT.EDU (Ronald Wahl)
Wed Sep 13 20:37:33 1995

Date: Thu, 14 Sep 1995 02:27:51 +0200 (MET DST)
From: Ronald Wahl <Ronald.Wahl@Informatik.TU-Chemnitz.DE>
To: pthreads-mailinglist <pthreads@MIT.EDU>


Hi,

One thread of my program should read a directory listing from an ftp 
server. I do this in blocks of size 4096 bytes. On little directories it 
will do the job (in most cases) but on large directories I get a "Bad 
address" on the read call (fread does not return in this case). Sometimes 
the read call does only read 1024 bytes instead of 4096. Maybe there is a 
bug in the pthreads library (I use 1.60beta3 with linux-1.2.13). I guess 
it has to do with a signal (maybe from the pthread scheduler) interrupting 
the read call.

Can somebody help me to solve this problem?!

Ronald.


+-------------------------------------------------------------------+
| Ronald Wahl                        rwa@informatik.tu-chemnitz.de  |
| >> PGP key available by finger <<  http://www.tu-chemnitz.de/~row |
+-------------------------------------------------------------------+
| PGP fingerprint: 9D 4A 66 7C A9 9F 6A 5F  90 45 D5 0C DF E5 CB 71 |
+-------------------------------------------------------------------+


home help back first fref pref prev next nref lref last post