Change-Id: I83867775088438636cf483a14616b8ef49106a84
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
const int r = read(inotify_fd, &ievent, sizeof ievent);
if (r < 0)
return;
- assert(ievent.ie.wd == inotify_wd);
+
+ /* -1 means an overflow of the the event queue. This is fine
+ (if a bit worrisome) since it still tells us that an event
+ has arrived, which is all we care about at this point. */
+ assert(ievent.ie.wd == inotify_wd || ievent.ie.wd == -1);
pthread_mutex_lock(&log_init_lock);
__apply_update();