SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
}
- /* Drop the capabilities for this thread */
- SCDropCaps(tv);
-
if (tv->thread_setup_flags != 0)
TmThreadSetupOptions(tv);
+ /* Drop the capabilities for this thread */
+ SCDropCaps(tv);
+
if (s->SlotThreadInit != NULL) {
void *slot_data = NULL;
r = s->SlotThreadInit(tv, s->slot_initdata, &slot_data);
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
}
- /* Drop the capabilities for this thread */
- SCDropCaps(tv);
-
if (tv->thread_setup_flags != 0)
TmThreadSetupOptions(tv);
+ /* Drop the capabilities for this thread */
+ SCDropCaps(tv);
+
if (s->SlotThreadInit != NULL) {
void *slot_data = NULL;
r = s->SlotThreadInit(tv, s->slot_initdata, &slot_data);
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
}
- /* Drop the capabilities for this thread */
- SCDropCaps(tv);
-
if (tv->thread_setup_flags != 0)
TmThreadSetupOptions(tv);
+ /* Drop the capabilities for this thread */
+ SCDropCaps(tv);
+
SCLogDebug("%s starting", tv->name);
if (s->SlotThreadInit != NULL) {
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
}
- /* Drop the capabilities for this thread */
- SCDropCaps(tv);
-
if (tv->thread_setup_flags != 0)
TmThreadSetupOptions(tv);
+ /* Drop the capabilities for this thread */
+ SCDropCaps(tv);
+
SCLogDebug("%s starting", tv->name);
if (s->SlotThreadInit != NULL) {
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
}
- /* Drop the capabilities for this thread */
- SCDropCaps(tv);
-
if (tv->thread_setup_flags != 0)
TmThreadSetupOptions(tv);
+ /* Drop the capabilities for this thread */
+ SCDropCaps(tv);
+
/* check if we are setup properly */
if (s == NULL || s->PktAcqLoop == NULL || tv->tmqh_in == NULL || tv->tmqh_out == NULL) {
SCLogError(SC_ERR_FATAL, "TmSlot or ThreadVars badly setup: s=%p,"
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
}
- /* Drop the capabilities for this thread */
- SCDropCaps(tv);
-
if (tv->thread_setup_flags != 0)
TmThreadSetupOptions(tv);
+ /* Drop the capabilities for this thread */
+ SCDropCaps(tv);
+
/* check if we are setup properly */
if (s == NULL || tv->tmqh_in == NULL || tv->tmqh_out == NULL) {
EngineKill();