Fix deletion of routing policy rules when terminating due to a signal
authorAlejandro Enrique <alejandro.enrique@fon.com>
Wed, 11 Feb 2015 16:44:38 +0000 (17:44 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 13 Feb 2015 00:02:28 +0000 (11:02 +1100)
commita1ecc7303afbcb9070aa864571e078c8e317a967
tree4d70d79c08744f4bb7b6c003816ed6386c3af13b
parentb12322b8e1ac473b09b26f99a9c14a8e6a20df04
Fix deletion of routing policy rules when terminating due to a signal

This patch fix routing policy rules not being deleted on termination
due to SIGTERM, SIGHUP, SIGUSR1 or SIGUSR2.
Calling uloop_end makes the call to uloop_run on main to finish and
the process to exit calling the proper cleaning functions.

Signed-off-by: Alejandro Enrique <alejandro.enrique@fon.com>
main.c