From: Victor Julien Date: Thu, 14 Jul 2016 07:49:21 +0000 (+0200) Subject: threads: failed thread is a fatal error now X-Git-Tag: suricata-3.2beta1~396 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=045c10db43ca97fe0c2ebf70e8af6c874f3cad71;p=thirdparty%2Fsuricata.git threads: failed thread is a fatal error now --- diff --git a/src/tm-threads.c b/src/tm-threads.c index fa84364963..c5699e82ad 100644 --- a/src/tm-threads.c +++ b/src/tm-threads.c @@ -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; }