Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx> Date: 18/05/2010 at 14:24:04 Revision: 4555 Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: trunk Log: Fix firewall_close. 1. Its parameter was shadowing signal(2). 2. exit(signum) was not "graceful". Modified: M firewall/firewall.c === modified file 'firewall/firewall.c' --- firewall/firewall.c 2010-05-17 18:24:10 +0000 +++ firewall/firewall.c 2010-05-18 11:22:51 +0000 @@ -803,11 +803,11 @@ * and clean up all packet capture rules. * */ -static void firewall_close(const int signal) +static void firewall_close(const int sig) { - HIP_DEBUG("Closing firewall...\n"); + HIP_DEBUG("Caught signal %d, closing firewall.\n", sig); firewall_exit(); - exit(signal); + exit(EXIT_SUCCESS); } static void die(struct ipq_handle *h)