[ovs-dev] [PATCH 03/14] socket-util: Maximum file descriptors for windows.

Ben Pfaff blp at nicira.com
Thu Feb 20 21:34:46 UTC 2014

On Wed, Feb 19, 2014 at 03:36:14PM -0800, Gurucharan Shetty wrote:
> Windows does not have a getrlimit() function. As such,
> there is no limit to number of file descriptors that
> can be opened. So, set an aritificial limit of 1024.
> This may be increased in the future if the limit is too
> low.
> Co-authored-by: Linda Sun <lsun at vmware.com>
> Signed-off-by: Linda Sun <lsun at vmware.com>
> Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>

get_max_fds() is only used by process_start() in process.c and is only
relevant for the Unix "fork" model of creating processes, not for
Windows.  I'd rather move the function to process.c and #ifdef it out
entirely for Windows.  How does that sound?



More information about the dev mailing list