Mac FS watcher: ignore events from the same process

This commit is contained in:
Klaas Freitag 2014-02-18 16:28:25 +01:00
parent 1b03dc759b
commit e4965ab06b

View file

@ -69,7 +69,7 @@ void FolderWatcherPrivate::startWatching()
pathsToWatch,
kFSEventStreamEventIdSinceNow,
0, // latency
kFSEventStreamCreateFlagNone
kFSEventStreamCreateFlagNone+kFSEventStreamCreateFlagIgnoreSelf
);
FSEventStreamScheduleWithRunLoop(stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);