Subject: Re: reached select() limit

Re: reached select() limit

From: eugeny gladkih <john_at_drweb.com>
Date: Fri, 3 Feb 2017 17:59:05 +0300

On 02/03/2017 05:43 PM, eugeny gladkih wrote:

>>>> I would certainly not assume that I can just redefine FD_SETSIZE
>>>> without
>>>> double-checking.
>>>>
>>>
>>> that was a piece of production code. it works well.
>>
>> Well yes I am sure it does. In Solaris.
>>
>> I looked at glibc select() code just now and it doesn't even use
>> FD_SETSIZE to define the structures, so redefining it would be useless.
>> The actual value glibc uses is __FD_SETSIZE which is hard coded in
>> bits/typesizes.h and I don't see how you could get at it to change it.
>>
>
> glibc does nothing but call 'pselect6' syscall with the same parameters
> that it got. so, you have to read the kernel source.
>

sorry, the 1st select's parameter defined everything you want (except
memory allocation for fs_set)

-- 
Yours sincerely, Eugeny.
GM of Enterprise Solutions Department
Doctor Web, Ltd.
http://www.drweb.com, +79119997425
Received on 2017-02-03