[152] in Pthreads mailing list archive
fd tablesize in beta4_1
daemon@ATHENA.MIT.EDU (Nils Jungclaus)
Wed Oct 25 10:50:03 1995
To: pthreads@MIT.EDU
Date: Wed, 25 Oct 1995 14:59:38 +0100 (MET)
From: Nils Jungclaus <nils@TechFak.Uni-Bielefeld.DE>
Hi!
Trying the new beta4_1 release I still have some errors using
rpc with the thread lib. As I posted some time ago, the
fd-table allocated in pthread/fd.c is too small and I get
a segmentation fault when accessing fd[42]. The following patch
for pthread/fd.c fixes this. On Sun4 and Linux at least rpc runs
fine with threads now.
62c62
< static const int dtablecount = 4096/sizeof(struct fd_table_entry);
---
> static const int dtablecount = 32768/sizeof(struct fd_table_entry);
regards
Nils
,,,
(o o)
-------------------------oOO--(_)--OOo---------------------
Nils Jungclaus University of Bielefeld
phone: +49 521 106-6059 (Germany)
fax: +49 521 106-6011
email: nils@TechFak.uni-bielefeld.de
-----------------------------------------------------------