From: Alexandru Ardelean <[email protected]>

Signed-off-by: Alexandru Ardelean <[email protected]>
---
 log/logd.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/log/logd.c b/log/logd.c
index f61e666..a9fec9a 100644
--- a/log/logd.c
+++ b/log/logd.c
@@ -164,8 +164,10 @@ ubus_connect_handler(struct ubus_context *ctx)
        int ret;
 
        ret = ubus_add_object(ctx, &log_object);
-       if (ret)
+       if (ret) {
                fprintf(stderr, "Failed to add object: %s\n", 
ubus_strerror(ret));
+               exit(1);
+       }
        fprintf(stderr, "log: connected to ubus\n");
 }
 
-- 
1.8.4.5
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to