• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: dyld: Too many open files, errno = 24
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: dyld: Too many open files, errno = 24 (From: Phillip Mills <email@hidden>)

  • Prev by Date: Newbie - Using NSButtonCell in a table
  • Next by Date: Re: NSTimer causes events to be lost
  • Previous by thread: Re: dyld: Too many open files, errno = 24
  • Next by thread: NSMixedState and bindings
  • Index(es):
    • Date
    • Thread