[MacPorts] #35612: proctools: bsdmake: setrlimit: Invalid argument

MacPorts noreply at macports.org
Wed Oct 3 12:04:10 PDT 2012


#35612: proctools: bsdmake: setrlimit: Invalid argument
--------------------------------+----------------------
  Reporter:  chuckmcknight@…    |      Owner:  raimue@…
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.1.2
Resolution:                     |   Keywords:
      Port:  bsdmake proctools  |
--------------------------------+----------------------

Comment (by raimue@…):

 There is only one call to `setrlimit` in bsdmake, which is at the
 beginning of
 [http://www.opensource.apple.com/source/bsdmake/bsdmake-24/main.c main]
 (line 751). According to the man page for setrlimit(2), valid values for
 the `rlim_cur` should be in the range from `0` to `rlim_max`. I could only
 think of a problem here if the second branch in the Apple related branch
 is taken which sets `rlim_cur = OPEN_MAX`. With a configuration such that
 OPEN_MAX > rlim_max this would be an invalid value.

 Do you have any special configuration for the maximum number of open files
 on your system?

-- 
Ticket URL: <https://trac.macports.org/ticket/35612#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list