From c0c06ec7ead11ca201bcbf0d1c7e986c7d3c90c0 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 18 May 2012 22:32:25 +0200 Subject: [PATCH] uloop: do not use ULOOP_EDGE_TRIGGER for the blocking socket, it can miss some events due to races --- libubus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libubus.h b/libubus.h index 0dcbb6d..e0e418b 100644 --- a/libubus.h +++ b/libubus.h @@ -150,7 +150,7 @@ const char *ubus_strerror(int error); static inline void ubus_add_uloop(struct ubus_context *ctx) { - uloop_fd_add(&ctx->sock, ULOOP_EDGE_TRIGGER | ULOOP_BLOCKING | ULOOP_READ); + uloop_fd_add(&ctx->sock, ULOOP_BLOCKING | ULOOP_READ); } /* call this for read events on ctx->sock.fd when not using uloop */ -- 2.25.1