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) {
if (TmThreadsCheckFlag(tv, THV_FAILED)) {
TmThreadsSetFlag(tv, THV_DEINIT);
EngineKill();
goto end;
FatalError(SC_ERR_FATAL, "thread %s failed", tv->name);
}
tv = tv->next;
}
}
end:
SCMutexUnlock(&tv_root_lock);
return;
}

Loading…
Cancel
Save