Projects
Eulaceura:Mainline
transmission
_service:obs_scm:transmission-fdlimits.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:transmission-fdlimits.patch of Package transmission
--- libtransmission/fdlimit.c~ 2020-05-22 06:04:23.000000000 -0500 +++ libtransmission/fdlimit.c 2020-07-02 08:53:15.170954677 -0500 @@ -390,26 +390,6 @@ fileset_construct(&i->fileset, FILE_CACHE_SIZE); session->fdInfo = i; -#ifndef _WIN32 - - /* set the open-file limit to the largest safe size wrt FD_SETSIZE */ - struct rlimit limit; - - if (getrlimit(RLIMIT_NOFILE, &limit) == 0) - { - int const old_limit = (int)limit.rlim_cur; - int const new_limit = MIN(limit.rlim_max, FD_SETSIZE); - - if (new_limit != old_limit) - { - limit.rlim_cur = new_limit; - setrlimit(RLIMIT_NOFILE, &limit); - getrlimit(RLIMIT_NOFILE, &limit); - tr_logAddInfo("Changed open file limit from %d to %d", old_limit, (int)limit.rlim_cur); - } - } - -#endif } }
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2