libubox: How to terminate uloop orderly?

Andre Heider a.heider at gmail.com
Thu May 19 22:54:22 PDT 2022


On 17/05/2022 11:04, Koch, Alexander via openwrt-devel wrote:
> So I'm wondering: what is the correct way to terminate the uloop?

It's been a while and details are vague, but this works for me:
https://github.com/openwrt/openwrt/blob/master/package/network/config/ltq-vdsl-app/src/src/dsl_cpe_ubus.c#L857-L883

ubus_init()/ubus_deinit() are called from the main thread, and the 
thread function just contains uloop_run().

Cheers,
Andre



More information about the openwrt-devel mailing list