Filter destructors called upon daemon termination MP-505
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 2 Jan 2014 14:16:21 +0000 (15:16 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 2 Jan 2014 14:19:14 +0000 (15:19 +0100)
commit9838c2eadf06b6bfe3d6eb264c1b485b51ba1a06
tree7631405d0f3b078607f7df9f193d4643825a59b9
parent491b957f16710bd20d924466d8ba3d7208f60573
Filter destructors called upon daemon termination MP-505

When metaproxy daemon receives SIGTERM the stop method of each filter
is called. The stop method existed before, but did not take any
arguements (void).. The frontend_net filter can now distinguish
between SIGUSR1 (stop bind, but keep sessions running) and SIGTERM
(stop immediately). Note that this changes the API+ABI of Metaproxy
filters.
12 files changed:
include/metaproxy/filter.hpp
include/metaproxy/router.hpp
include/metaproxy/router_chain.hpp
include/metaproxy/router_xml.hpp
src/filter.cpp
src/filter_frontend_net.cpp
src/filter_frontend_net.hpp
src/metaproxy_prog.cpp
src/router_chain.cpp
src/router_flexml.cpp
src/router_flexml.hpp
src/router_xml.cpp