1
0
Fork 0

check IN_IGNORED

This commit is contained in:
illiliti 2020-08-19 22:51:27 +03:00
parent d6e774460d
commit 662062604e

View file

@ -131,6 +131,12 @@ static void *udev_monitor_handle_event(void *ptr)
for (i = 0; i < len; i += sizeof(struct inotify_event) + event->len) {
event = (struct inotify_event *)&data[i];
// TODO user deleted directory, what should we do ?
if (event->mask & IN_IGNORED) {
break;
}
send(udev_monitor->sfd[1], event->name, event->len, 0);
}
}