lib/waiter: Add timeout waiters
[petitboot] / discover / udev.c
index 330b286848513d47e68f769c64c7dfaeedf8bcc4..309a749acfbad20787e703f256216be11f017d08 100644 (file)
@@ -296,7 +296,7 @@ struct pb_udev *udev_init(struct waitset *waitset,
        if (result)
                goto fail_monitor;
 
-       waiter_register(waitset, udev_monitor_get_fd(udev->monitor), WAIT_IN,
+       waiter_register_io(waitset, udev_monitor_get_fd(udev->monitor), WAIT_IN,
                udev_process, udev->monitor);
 
        pb_log("%s: waiting on udev\n", __func__);