On Sat, Sep 16, 2000 at 11:23:59AM +0900, James T. Perry wrote:
[snip]
>
> I got curious and was poking around with my qmail setup,
> and a simple 'grep -r FD_SET' into the kernel sources gave
> me (amongst many similar) a line in:
> /usr/src/linux-2.2.17/include/linux/posix_types.h
> which said:
> #define __FD_SETSIZE 1024
>
> I know that I shouldn't be screwing with kernels, but
> I was just curious if this was safe/the right place to
> change, or if I could change the 1024 to say 2048 (or
> something appropriate?) and recompile the kernel and
> also be safe to run everything.
FD_SETSIZE is not a kernel variable, it's just used by the macro's
for handling select() fdlists. Adding a -DFD_SETSIZE=2048 (yes,
that's without the __) to the correct conf-file in the qmail source
should do the trick.
Ok, found it. This is what I do in my installscripts:
echo Fixing $QMAIL/conf-cc...
echo 'cc -O2 -DFD_SETSIZE=4096' > $QMAIL/conf-cc
Greetz, Peter.
--
[ircoper] [EMAIL PROTECTED] - Peter van Dijk / Hardbeat
[student] Undernet:#groningen/wallops | IRCnet:/#alliance
[developer] _____________
[disbeliever - the world is backwards] (__VuurWerk__(--*-