Dan Kegel <d...@kegel.com> writes:

>  void sock_init(void)
>  {
> +    struct rlimit lim;
> +
> +    if (!getrlimit(RLIMIT_NOFILE, &lim) && lim.rlim_cur < lim.rlim_max) {
> +        lim.rlim_cur = lim.rlim_max;
> +        setrlimit(RLIMIT_NOFILE, &lim);
> +    }

This is already done in the Wine loader, there's no need to do it twice.

-- 
Alexandre Julliard
julli...@winehq.org


Reply via email to