I\'m using the code example by David Hamrick to monitor a file using GCD.
int fildes = open(\"/path/to/config.plist\", O_RDONLY);
dispatch_queue_t queue = d
After a little bit a research I found out :
=> I was getting the flag DISPATCH_VNODE_DELETE
I was monitoring ~/Library/Preferences/com.apple.dock.plist As I found out, changing the dock orientation, deletes the original file and replaces it with a new one.
Therefore, the monitoring stopped.
The same author proposes a solution where in case of deletion, the GCD block call itself to continue the monitoring.