Re: Posix error 24
Re: Posix error 24
- Subject: Re: Posix error 24
- From: "Paul Sanders" <email@hidden>
- Date: Sat, 15 May 2010 15:39:23 +0100
Use lsof from the command line.
Paul Sanders.
----- Original Message -----
From: "The Geezer" <email@hidden>
To: <email@hidden>
Sent: Saturday, May 15, 2010 3:24 PM
Subject: Posix error 24
I wrote a cocoa application that periodically gets a posix error
24.
I know this means my app's number of open files has exceeded
kern.maxfilesperproc, however, I can't figure out when and where
I'm
leaving files open. This appears to be happening after accessing
several hundred web pages.
I would like to be able to keep track of what the system
considers to
be the number of files open at any given time to help debug my
program. I assume it is the fields kern.openfiles and
kern.maxfilesperproc that I need to access.
Could someone show me how to access these fields in a cocoa
application?
Thanks,
-geezer
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden