Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'sysctl doesn't understand "unlimited"' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
sysctl doesn't understand "unlimited"
Authored by: hayne on Sep 07, '05 11:34:46AM

I looked at the source code for the 'sysctl' utility and it seems that it does not do anything special with the string "unlimited" - i.e. it does not understand that as a valid value at all.
In fact, if you supply any string that doesn't start with an integer when you are using the "-w" to set an integer parameter value, it will result in the parameter getting set to zero. This is a consequence of bad error handling in the 'sysctl' utility. If you give it a string like "xyz" or anything other than an integer, it will effectively take it as zero.
I have reported this bug to Apple.



[ Reply to This | # ]