Re: dyld: Too many open files, errno = 24
Re: dyld: Too many open files, errno = 24
- Subject: Re: dyld: Too many open files, errno = 24
- From: Chris Ridd <email@hidden>
- Date: Mon, 21 Mar 2005 07:21:23 +0000
On 21/3/05 1:22 am, Phillip Mills <email@hidden> wrote:
> On Mar 20, 2005, at 8:11 PM, dan pahlajani wrote:
>
>> So, is true that on Mac OS X I can't open as
>> many files as I want?
>
> I just checked 'ulimit -n' under bash and found that my default limit
> on open files is 256. (Anyone know a tcsh equivalent?)
limit.
> You may need to change your account setting...the hard limit is
> reported as "unlimited".
That will make it tricky for users of Dan's software to install it...
You could raise your limit to the hard maximum allowed, which would give you
a little breathing space. Something like this, though with error checking:
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
struct rlimit rl;
getrlimit(RLIMIT_NOFILE, &rl);
rl.rlim_cur = rl.rlim_max;
setrlimit(RLIMIT_NOFILE, &rl);
Cheers,
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden