FSEventStreamCreate: BUG in libdispatch client: kevent[EVFILT_WRITE]
FSEventStreamCreate: BUG in libdispatch client: kevent[EVFILT_WRITE]
- Subject: FSEventStreamCreate: BUG in libdispatch client: kevent[EVFILT_WRITE]
- From: Trygve Inda <email@hidden>
- Date: Sat, 17 Jan 2015 12:27:26 -0800
- Thread-topic: FSEventStreamCreate: BUG in libdispatch client: kevent[EVFILT_WRITE]
I am getting an error in the Console when shutting down a FSEvent monitor
I have verified that [self prefBundlePath] points to a valid directory (a
prefpane bundle).
BUG in libdispatch client: kevent[EVFILT_WRITE] delete: "No such file or
directory" - 0x2
-(void)addFileEventCallback
{
FSEventStreamContext fsStreamContext = {0, self, NULL, NULL, NULL};
fsStream = FSEventStreamCreate (kCFAllocatorDefault, FSEventCallback,
&fsStreamContext, (CFArrayRef) [NSArray arrayWithObject:[self
prefBundlePath]], kFSEventStreamEventIdSinceNow, 3,
kFSEventStreamCreateFlagWatchRoot);
FSEventStreamScheduleWithRunLoop (fsStream, CFRunLoopGetCurrent(),
kCFRunLoopDefaultMode);
FSEventStreamStart (fsStream);
}
-(void)removeFileEventCallback
{
FSEventStreamStop (fsStream);
FSEventStreamUnscheduleFromRunLoop (fsStream, CFRunLoopGetCurrent(),
kCFRunLoopDefaultMode);
FSEventStreamInvalidate (fsStream);
FSEventStreamRelease (fsStream);
}
Ideas?
_______________________________________________
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