libply-splash-core: also monitor for file removal in udev directory

Ensure plymouth detects coldplug completion with recent udev (>= 213).
This commit is contained in:
Frederic Crozat 2014-06-19 17:58:50 +02:00
parent 05cbf14855
commit b7fdd62fff

View file

@ -716,7 +716,7 @@ watch_for_coldplug_completion (ply_device_manager_t *manager)
}
fd = inotify_init1 (IN_CLOEXEC);
result = inotify_add_watch (fd, "/run/udev", IN_MOVED_TO);
result = inotify_add_watch (fd, "/run/udev", IN_MOVED_TO| IN_DELETE);
if (result < 0) {
ply_trace ("could not watch for udev to show up: %m");