libubus: do not modify uloop_cancelled
authorFelix Fietkau <nbd@nbd.name>
Fri, 3 Feb 2017 17:39:11 +0000 (18:39 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 3 Feb 2017 17:39:15 +0000 (18:39 +0100)
commit91acde66b963e238aba35fb4f2030a147df84cd4
tree6ca0a469c0a0d3d861b9b8ea3c398e929b0f10f6
parent763b9b2cf293fb60b5c2ddf34e2500f95200b6b5
libubus: do not modify uloop_cancelled

uloop_cancelled was used for two purposes within ubus_complete_request:
- interrupting recursive requests on SIGINT/SIGTERM
- breaking out of the poll loop in a recursive request that completed

Saving/restorung uloop_cancelled was buggy, leading to SIGTERM not being
processed properly. Simplify the logic by using a separate field for
internal use

Signed-off-by: Felix Fietkau <nbd@nbd.name>
libubus-io.c
libubus-req.c
libubus.h