From e52db46c9c5d8eabe5abaccf28468c6e0b99be95 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Mon, 15 Sep 2014 15:42:09 +0300 Subject: [PATCH] libubus: restore uloop_cancelled on timeout Context: 1 loop with a single ubus_invoke() that times out calls uloop_end() which ends the loop, and thus ends the application. Signed-off-by: Felix Fietkau --- libubus-req.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libubus-req.c b/libubus-req.c index ebc5806..d44db51 100644 --- a/libubus-req.c +++ b/libubus-req.c @@ -153,6 +153,7 @@ int ubus_complete_request(struct ubus_context *ctx, struct ubus_request *req, timeout = time_end - get_time_msec(); if (timeout <= 0) { ubus_set_req_status(req, UBUS_STATUS_TIMEOUT); + uloop_cancelled = cancelled; break; } } -- 2.30.2