Re: File descriptors not freed up without a -closeFile call
Re: File descriptors not freed up without a -closeFile call
- Subject: Re: File descriptors not freed up without a -closeFile call
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 23 Jun 2010 12:21:37 +0200
Le 23 juin 2010 à 12:14, Ben Haller a écrit :
> Hi all. I'm using NSTask and NSPipe to launch lots of little processes, and I'm running out of file descriptors. In my googling and archive searching, I found some info that led me to several approaches:
>
> 1. I ran ObjectAlloc and Leaks under Instruments and confirmed that I am not leaking pipes or file handles. Nor is it an autorelease pool issue; the run loop is running freely as I start and stop tasks, so the pipes and file handles get dealloced properly. All pipes and file handles made by my task code were listed by ObjectAlloc as "transitory".
Did you try to track your File descriptor problem using the File Activity probe instead of memory probes ?
-- Jean-Daniel
_______________________________________________
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