Tatsuo Ishii <ishii(at)postgresql(dot)org> writes:
> This is used for calculating the upper limit of -c option. However
> actual limit is coming from the number of descriptors that select(2)
> can watch (besides the number of file descriptors allowed by the
> kernal. This is different story though, I think). So it seems the line
> would be better looking at FD_SETSIZE in select.h.
This seems reasonable, but surely it needs to be FD_SETSIZE less a bit,
because stdin/stdout/etc eat FD numbers too. Maybe
#define MAXCLIENTS (FD_SETSIZE - 10)
regards, tom lane