1
0
Fork 0

udev_monitor.c: skip inotify event if directory

This commit is contained in:
illiliti 2021-06-03 09:41:26 +03:00
parent fb44266bfd
commit c9b824bd54

View file

@ -156,6 +156,10 @@ static void *handle_event(void *ptr)
break;
}
if (event->mask & IN_ISDIR) {
continue;
}
send(udev_monitor->sfd[1], event->name, event->len, 0);
}
}