On Thu, Feb 5, 2015, at 05:54 PM, Graham Cox wrote:
> 
> > On 6 Feb 2015, at 6:48 am, Greg Parker <gpar...@apple.com> wrote:
> > 
> > You can use getrlimit(RLIMIT_NOFILE, …) to query the limit in your process, 
> > and setrlimit(RLIMIT_NOFILE, …) to attempt to raise it. The default limit 
> > may be as low as 256, depending on OS version and on how the process is 
> > launched. (Note that each two-way network connection uses two file 
> > descriptors.) setrlimit() should be able to raise the file descriptor limit 
> > to a few thousand unless your system administrator is mean.
> 
> 
> This is great. Running from XCode I get 7168, archiving and exporting a
> final build of my app, I get 256... bingo! Only the built version was
> seeing this crash, another reason I was having a lot of trouble debugging
> it.


I'm not a Core OS engineer, so I have no idea how practical this is, but
I'd file a quick enhancement request anyway asking that Xcode spawn apps
in an uncustomized environment.

--Kyle

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to