summaryrefslogtreecommitdiff
path: root/lib/pqueue.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-03-22 12:53:36 -0300
committerRenato Westphal <renato@opensourcerouting.org>2017-03-27 14:54:57 -0300
commitdbce358222e5483140389795f790cfabd93808e1 (patch)
tree7bf48db061e0e8fb78228e189a011c48b46c028d /lib/pqueue.c
parent1e7e440f5a5555b286e9b6265e9e481d11123fcd (diff)
ldpd: do a full configuration reload upon receiving a SIGHUP
The rationale here is to do something very similar to what the original OpenBSD's ldpd(8) does to reload configuration files: * create a new empty base configuration (vty_conf); * parse the configuration file and store the result in vty_conf; * merge the new configuration into the current configuration. To do this, introduce a new global variable called "sighup" so that ldpd doesn't attempt to merge vty_conf into ldpd_conf for each command in the configuration file, which would be very disruptive. vty_conf should be merged only after the whole configuration file is parsed in order to avoid taking actions like shutting down neighbors when not necessary. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/pqueue.c')
0 files changed, 0 insertions, 0 deletions