Re: [RFC PATCH] _rpc_dtablesize: Decrease the value of size.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 26 Oct 2023, at 09:08, Benjamin Coddington wrote:

> This is addressed by several users of rpc_dtablesize() already, which all=
>  seem to do:
> 
>     setsize = _rpc_dtablesize();
>     if (setsize > FD_SETSIZE)
>         setsize = FD_SETSIZE;
> 
> Does it make sense to try to fix it for everyone, and should we clean up the users?

I apologize for not realizing that some users have addressed this issue beforehand. Nonetheless, I think it is necessary to modify the _rpc_dtablesize() function. I suggest modifying the _rpc_dtablesize() function.

        if (size == 0) {
                size = sysconf(_SC_OPEN_MAX);
                if (size > FD_SETSIZE)
                        size = FD_SETSIZE;
        }

In the meantime we need to clean up the existing user code.




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux