Project

General

Profile

Bug #498 ยป 0001-Set-thread-name-Suricata-Main-for-main-thread-and-Li.patch

Anoop Saldanha, 07/07/2012 11:33 AM

View differences:

src/detect-engine.c
{
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;
src/suricata.c
/* 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
    (1-1/1)