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: Dave Keck <email@hidden>
- Date: Wed, 23 Jun 2010 02:40:09 -1000
> Ah, interesting. I missed that in the docs. It still seems bad to me that
> the file handle will actually dealloc without closing its associated file
> descriptor, but perhaps you are right that that is the documented behavior.
> I'll just stop worrying about it and move on, then. Thanks!
NSPipe and its NSFileHandles work as you expect: when the read/write
file handles created via NSPipe are deallocated, the underlying
descriptors are closed. Along with Jean-Daniel Dupas, I created a
simple test case and it behaves as expected. (I've also been using
NSPipe/NSFileHandle extensively for years and have never come across
anything like you described.)
I'd be interested in seeing a test case showing the incorrect behavior.
_______________________________________________
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