[MacPorts] #38999: base/src/pextlib1.0/tracelib.c setrlimit failure
MacPorts
noreply at macports.org
Sun May 5 12:40:10 PDT 2013
#38999: base/src/pextlib1.0/tracelib.c setrlimit failure
-------------------------+--------------------
Reporter: ajdudman@… | Owner: cal@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: base | Version: 2.1.3
Resolution: fixed | Keywords:
Port: |
-------------------------+--------------------
Comment (by cal@…):
You're right, the struct might not be initialized; I should have seen that
before commiting.
My shell seems to have a default soft limit on the number of open files (I
never changed any limit settings). It currently is 2560, but I recall it
being 256 when I checked last time. Maybe the OS (or my shell) is doing
some magic… The hard limit is unlimited, though.
Your patch looks good, but if getrlimit failed, setrlimit would work on
unitialized data structures, so I thought it might be better to only run
setrlimit when getrlimit succeeds. See r105765.
--
Ticket URL: <https://trac.macports.org/ticket/38999#comment:8>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list