lib/waiter: Add timeout waiters
[petitboot] / ui / twin / pbt-scr.c
index 8532bc10bfb79cfb79338fae96dea0bbcc035670..e093c3c66b13fcc28defaa3d8b882a3d8d746511 100644 (file)
@@ -443,8 +443,8 @@ struct pbt_scr *pbt_scr_init(void *talloc_ctx,
 
        assert(waiter_fd != -1);
 
-       waiter_register(waitset, waiter_fd, WAIT_IN, (void *)pbt_twin_waiter_cb,
-               &scr->twin_ctx);
+       waiter_register_io(waitset, waiter_fd, WAIT_IN,
+                       (void *)pbt_twin_waiter_cb, &scr->twin_ctx);
 
        return scr;