[Server] Respond to set signal handler failure with clean_exit
This commit is contained in:
parent
d593779ecf
commit
71cea19f3d
@ -132,8 +132,10 @@ main(int argc, char **argv)
|
|||||||
* the number of signals that were *not* set. Those that were not set
|
* the number of signals that were *not* set. Those that were not set
|
||||||
* will be listed in the log/stderr output.
|
* will be listed in the log/stderr output.
|
||||||
*/
|
*/
|
||||||
if(set_sig_handlers() > 0)
|
if(set_sig_handlers() > 0) {
|
||||||
log_msg(LOG_ERR, "Errors encountered when setting signal handlers.");
|
log_msg(LOG_ERR, "Errors encountered when setting signal handlers.");
|
||||||
|
clean_exit(&opts, NO_FW_CLEANUP, EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
/* Initialize the firewall rules handler based on the fwknopd.conf
|
/* Initialize the firewall rules handler based on the fwknopd.conf
|
||||||
* file, but (for iptables firewalls) don't flush any rules or create
|
* file, but (for iptables firewalls) don't flush any rules or create
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user