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

Xiongfei Guo xfguo at xfguo.org
Thu Aug 7 04:29:55 EDT 2014


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>
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list