unix-socket: fix restart/shutdown cycle

When cleaning up after a pcap was processed, the stats api was cleaned
up before the stats threads were killed, leading to a BUG_ON triggering.
pull/1251/head
Victor Julien 11 years ago
parent 3f3481e4d2
commit b978730486

@ -295,13 +295,14 @@ TmEcode UnixSocketPcapFilesCheck(void *data)
TmThreadKillThreadsFamily(TVT_PPT); TmThreadKillThreadsFamily(TVT_PPT);
TmThreadClearThreadsFamily(TVT_PPT); TmThreadClearThreadsFamily(TVT_PPT);
FlowKillFlowRecyclerThread(); FlowKillFlowRecyclerThread();
RunModeShutDown();
/* kill remaining mgt threads */ /* kill remaining mgt threads */
TmThreadKillThreadsFamily(TVT_MGMT); TmThreadKillThreadsFamily(TVT_MGMT);
TmThreadClearThreadsFamily(TVT_MGMT); TmThreadClearThreadsFamily(TVT_MGMT);
SCPerfReleaseResources(); SCPerfReleaseResources();
RunModeShutDown();
/* mgt and ppt threads killed, we can run non thread-safe /* mgt and ppt threads killed, we can run non thread-safe
* shutdown functions */ * shutdown functions */
FlowShutdown(); FlowShutdown();

Loading…
Cancel
Save