-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stage2: ask for more file descriptors #6921
stage2: ask for more file descriptors #6921
Conversation
I believe you also get to delete this code now too :) Lines 981 to 1003 in 445d808
|
c74d890
to
7703f4c
Compare
I don't have a mac, so I would appreciate help with the EINVAL failure from someone who does. cc @kubkon |
On Darwin, according to the man pages for setrlimit(), when adjusting max number of open fds, the reported hard max by getrlimit() is only theoretical, while the actual maximum, set in the kernel, is hardcoded in the header file. Therefore, the reported max has to be adjusted as `min(OPEN_MAX, lim.max)`. Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
@xackus 8dda64f should fix it on Darwin :-) The issue on Darwin is that you can't trust
|
@kubkon Thank you, I missed the "COMPATIBILITY" section of the man page. |
I guess, in this case, we could already map
Since we constrain the input resource to EDIT: proposing that for another PR, not necessarily this one. |
The CI failure is unrelated to this PR, so proceeding with the merge. |
Follow up to #6906.