1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-16 01:57:09 +00:00

Complete previous commit

This commit is contained in:
Nikolas Garofil 2010-11-23 17:40:53 +01:00
parent c1933dc186
commit 23a193fe89

View File

@ -2409,6 +2409,7 @@ static void main_loop(void)
if (FD_ISSET(inotify_fd, &descriptors)) {
/* process inotify events */
len = read(inotify_fd, inotify_buff, INOTIFY_BUF_LEN - 1);
inotify_buff[len] = 0;
while (len > 0 && idx < len) {
struct inotify_event *ev = (struct inotify_event *) &inotify_buff[idx];
if (ev->wd == inotify_config_wd && (ev->mask & IN_MODIFY || ev->mask & IN_IGNORED)) {