check IN_IGNORED
This commit is contained in:
parent
d6e774460d
commit
662062604e
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue