On Jun 30, 2011, at 3:33 PM, James Merkel wrote: > So, my guess is that when Instruments shows an FD of -1 it refers to an FD > that isn't mine.
What the File Activity instrument is showing in its event list is a certain subset of system calls which operate on file descriptors. It is showing each call. When one of those events shows a file descriptor of -1, it typically means that call failed, because system calls which return file descriptors typically return -1 (or other negative number) to indicate failure. By the way, since File Activity is only monitoring a subset of file-descriptor-related system calls, you can't necessarily use it to track leaks of file descriptors. I have opened a bug report with Apple about the need for an instrument which tracks all file descriptor activity, but it hasn't had any response. Regards, Ken _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com