Re: dealloc and scarce resources
Re: dealloc and scarce resources
- Subject: Re: dealloc and scarce resources
- From: Jens Alfke <email@hidden>
- Date: Thu, 30 Jun 2011 14:21:15 -0700
On Jun 30, 2011, at 1:33 PM, James Merkel wrote:
> We find from Kernighan and Ritchie (K&R) second edition, section 8.1 that a file descriptor is a small non-negative integer that refers to a file and is maintained by the system.
Actually file descriptors are used for any sort of I/O channel, including the default stdin/stdout/stderr streams, network sockets, IPC connections, and more. Running out of them is less uncommon than you’d think, so it’s a good idea to close unneeded ones ASAP.
—Jens
_______________________________________________
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