uloop: add missing waker_pipe initialization
[project/libubox.git] / uloop.c
diff --git a/uloop.c b/uloop.c
index 2612fbd..e60fb09 100644 (file)
--- a/uloop.c
+++ b/uloop.c
@@ -105,6 +105,7 @@ static int waker_init(void)
 
        waker_init_fd(fds[0]);
        waker_init_fd(fds[1]);
 
        waker_init_fd(fds[0]);
        waker_init_fd(fds[1]);
+       waker_pipe = fds[1];
 
        waker_fd.fd = fds[0];
        waker_fd.cb = waker_consume;
 
        waker_fd.fd = fds[0];
        waker_fd.cb = waker_consume;