threads: failed thread is a fatal error now

pull/2245/head
Victor Julien 9 years ago
parent fb655d5f15
commit 045c10db43

@ -2040,14 +2040,11 @@ void TmThreadCheckThreadState(void)
while (tv) { while (tv) {
if (TmThreadsCheckFlag(tv, THV_FAILED)) { if (TmThreadsCheckFlag(tv, THV_FAILED)) {
TmThreadsSetFlag(tv, THV_DEINIT); FatalError(SC_ERR_FATAL, "thread %s failed", tv->name);
EngineKill();
goto end;
} }
tv = tv->next; tv = tv->next;
} }
} }
end:
SCMutexUnlock(&tv_root_lock); SCMutexUnlock(&tv_root_lock);
return; return;
} }

Loading…
Cancel
Save