Skip to content
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

Set resource max limit to 10240 on macOS #1796

Conversation

rdmark
Copy link
Member

@rdmark rdmark commented Dec 1, 2024

Earlier versions of macOS such as 10.15 Catalina will throw an error when ulimit is set to too high a number. This PR uses a compliant value when calling setrlimit() on macOS specifically.

@rdmark
Copy link
Member Author

rdmark commented Dec 2, 2024

@NJRoadfan Would you be able to test this on your Catalina Mac? The Macs I have at hand are all running too new versions...

@NJRoadfan
Copy link
Contributor

This appears to work fine on Catalina. The main afpd daemon is throwing the set limits error too according to the log, but without any ill effects. Maybe the 10240 limit should be applied there as well?

@rdmark rdmark force-pushed the 1793-macos-cnid_metad-failing-to-load-setlimits-invalid-argument branch from 3bec172 to c426329 Compare December 7, 2024 09:14
@rdmark rdmark force-pushed the 1793-macos-cnid_metad-failing-to-load-setlimits-invalid-argument branch from c426329 to 10aba37 Compare December 7, 2024 09:14
@rdmark rdmark marked this pull request as ready for review December 7, 2024 09:14
@rdmark
Copy link
Member Author

rdmark commented Dec 7, 2024

Good idea. Let's apply this workaround for afpd too. Please test the updated PR when you have the opportunity!

Copy link

sonarcloud bot commented Dec 7, 2024

@rdmark rdmark merged commit b024332 into main Dec 8, 2024
30 checks passed
@rdmark rdmark deleted the 1793-macos-cnid_metad-failing-to-load-setlimits-invalid-argument branch December 8, 2024 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

macos: cnid_metad failing to load "setlimits: Invalid argument"
2 participants