[OpenWrt-Devel] [PATCH][RFC] libubus: restore uloop_cancelled on timeout

Alexandru Ardelean ardeleanalex at gmail.com
Mon Sep 15 09:51:33 EDT 2014


Cool.
Thanks.

On Mon, Sep 15, 2014 at 4:49 PM, Felix Fietkau <nbd at openwrt.org> wrote:

> On 2014-09-15 14:42, Alexandru Ardelean wrote:
> > Context: 1 loop with a single ubus_invoke() that times out calls
> > uloop_end() which ends the loop, and thus ends the application.
> >
> > In the end that seems to confuse procd which outputs a
> > notification as if the application segfault-ed a couple of
> > times, rather than ended 'gracefully' by being cancelled.
> >
> > Not sure if this fix is correct, hence the RFC part.
> >
> > Another approach would be to increase the timeout of the ubus_invoke()
> > call in my application, however, that itself does not look like a
> > definitive fix for timing out and cancelling the main uloop.
> >
> > So, if there are better suggestions, I'm open for them as well.
> > Another idea, would be to 'restart' the main uloop in case of
> > the timeout, or cancel the uloop cancel.
> Looks good to me, applied to git.
>
> - Felix
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20140915/dadd7730/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list