Hashmap *inotify_data; /* indexed by priority */
/* A list of inode structures that still have an fd open, that we need to close before the next loop iteration */
- LIST_HEAD(struct inode_data, inode_data_to_close);
+ LIST_HEAD(struct inode_data, inode_data_to_close_list);
/* A list of inotify objects that already have events buffered which aren't processed yet */
LIST_HEAD(struct inotify_data, buffered_inotify_data_list);
assert(!d->event_sources);
if (d->fd >= 0) {
- LIST_REMOVE(to_close, e->inode_data_to_close, d);
+ LIST_REMOVE(to_close, e->inode_data_to_close_list, d);
safe_close(d->fd);
}
}
}
- LIST_PREPEND(to_close, e->inode_data_to_close, inode_data);
+ LIST_PREPEND(to_close, e->inode_data_to_close_list, inode_data);
}
/* Link our event source to the inode data object */
goto fail;
}
- LIST_PREPEND(to_close, s->event->inode_data_to_close, new_inode_data);
+ LIST_PREPEND(to_close, s->event->inode_data_to_close_list, new_inode_data);
}
/* Move the event source to the new inode data structure */
* for the inode). Hence, let's close them when entering the first iteration after they were added, as a
* compromise. */
- while ((d = e->inode_data_to_close)) {
+ while ((d = e->inode_data_to_close_list)) {
assert(d->fd >= 0);
d->fd = safe_close(d->fd);
- LIST_REMOVE(to_close, e->inode_data_to_close, d);
+ LIST_REMOVE(to_close, e->inode_data_to_close_list, d);
}
}