udev_monitor.c: skip inotify event if directory
This commit is contained in:
parent
fb44266bfd
commit
c9b824bd54
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue