]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect reload: allow master update during reload
authorVictor Julien <victor@inliniac.net>
Tue, 27 Jan 2015 10:30:08 +0000 (11:30 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 19 Mar 2015 16:52:32 +0000 (17:52 +0100)
commit55e7370fc514258b83a26645633c8ee3c386617c
tree7b00987e924dd0b72ae85581099fa4603a53216e
parentb1c54a8673fcc293090ff61eca791a6b45e3d228
detect reload: allow master update during reload

Add DetectEngineReference, which takes a reference to a detect engine,
and make DetectEngineThreadCtxInitForLiveRuleSwap use it. This way
reload will not depend on master staying the same. This allows master
to be updated in between w/o affecting the reload that is in progress.
src/detect-engine.c
src/detect-engine.h