Changes between Initial Version and Version 1 of Ticket #35612, comment 5


Ignore:
Timestamp:
Oct 3, 2012, 7:04:27 PM (9 years ago)
Author:
raimue (Rainer Müller)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35612, comment 5

    initial v1  
    1 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.
     1There 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.
    22
    33Do you have any special configuration for the maximum number of open files on your system?