flow: don't hold tv_root_lock longer than needed

Don't hold it longer than needed in shutting down.
pull/1487/head
Victor Julien 11 years ago
parent c96805e839
commit 478719ee9d

@ -142,13 +142,12 @@ void FlowDisableFlowManagerThread(void)
}
tv = tv->next;
}
SCMutexUnlock(&tv_root_lock);
/* wake up threads, another try */
for (u = 0; u < flowmgr_number; u++)
SCCtrlCondSignal(&flow_manager_ctrl_cond);
SCMutexUnlock(&tv_root_lock);
/* reset count, so we can kill and respawn (unix socket) */
SC_ATOMIC_SET(flowmgr_cnt, 0);
return;

Loading…
Cancel
Save