[OpenWrt-Devel] [PATCH] libubox: handle SIGTERM in uloop_run()

Alexandru Ardelean ardeleanalex at gmail.com
Thu Aug 7 06:35:32 EDT 2014


seems that on a vmware x86_64 configuration this produces a kernel panic;

will re-test;
maybe it's not such a good idea to extend this to all processes that use
libubox yet;



On Thu, Aug 7, 2014 at 11:29 AM, Xiongfei Guo <xfguo at xfguo.org> wrote:

> Nice.
>
> BTW, I'm planning to add signal handling support for uloop.
>
> Libevent support this feature. It need create a socketpair and when signal
> event triggered, it send a byte to socket so it can trigger a uloop fd
> event...
>
> Alex Guo
>
>
> On 2014年08月07日 15:51, Alexandru Ardelean wrote:
>
>> procd sends SIGTERM to finish a process.
>> Though the process stops, anything after uloop_run()
>> ( uloop_done() and other cleanup ) does not seem to run.
>>
>> Signed-off-by: Alexandru Ardelean<ardeleanalex at gmail.com>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20140807/9a83beaf/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