New answers tagged ulimit
In my particular case, the application which I was running was begun with sudo. I believed that the limits would therefore be applied from the root user's account. I was wrong. Instead, I found that, although the application was running as root, the limits applied to it were the limits belonging to the user which launched the application.
ulimit(2) is obsolete now as it updates only a part of rlimit structure (most likely rendering it useless). There is a ulimit command in the bash shell, which is documented in bash's man page. The functions, getrlimit and setrlimit are to be used when linux apps are written as they supercede ulimit function.
Even though you only want to change the limit temporarily, the change must be done in a persistent way by creating /Library/LaunchDaemons/limit.maxproc.plist file, owned by root:wheel and permissions 644 with these contents: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...
Top 50 recent answers are included