Subject: Re: FD_SETSIZE
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Jon Ribbens <jon@oaktree.co.uk>
List: netbsd-help
Date: 05/06/1997 20:15:39
Jason Thorpe <thorpej@nas.nasa.gov> wrote:
> > After some searching, we've managed to work out that the cause of
> > Apache failing to start when we add a new virtual server is that
> > 'select' is a pretty badly designed call ;-).
>
> ...are you using NetBSD-current?
Nope, 1.1. (And no, I can't upgrade, I don't have two weeks to spare
at the moment.)
> > Anyway, the real question is: can I just edit /usr/include/types.h,
> > increase FD_SETSIZE to 1024, recompile the kernel, and expect
> > everything to work? Do I need to compile anything else? (e.g. shared
> > c libraries, etc.)
>
> ...existing libraries compiled with old FS_SETSIZE won't deal.
"won't deal"? As in, they won't work with the new kernel, or they
just won't be able to take advantage of the larger size? I was
rather expecting them to work due to the first parameter of select
telling it how many fds to look for.
<recompiles kernel> <finds it hasn't changed>
Ah. Why are there two copies of types.h, one in /usr/include/sys,
and one in /sys/sys?
Cheers
Jon
____
\ // Jon Ribbens // 10MB virtual-hosted // www.oaktree.co.uk
\// jon@oaktree.co.uk // web space for 49UKP //