Set thread name Suricata-Main for main thread and LiveRuleSwap for live swap thread

remotes/origin/master
Anoop Saldanha 13 years ago committed by Victor Julien
parent a0bce6362e
commit b2f589527a

@ -77,6 +77,10 @@ static void *DetectEngineLiveRuleSwap(void *arg)
{
SCEnter();
if (SCSetThreadName("LiveRuleSwap") < 0) {
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
}
SCLogInfo("===== Starting live rule swap triggered by user signal USR2 =====");
ThreadVars *tv_local = (ThreadVars *)arg;

@ -700,6 +700,10 @@ int main(int argc, char **argv)
/* initialize the logging subsys */
SCLogInitLogModule(NULL);
if (SCSetThreadName("Suricata-Main") < 0) {
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
}
RunModeRegisterRunModes();
/* By default use IDS mode, but if nfq or ipfw

Loading…
Cancel
Save