]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
threads: failed thread is a fatal error now
authorVictor Julien <victor@inliniac.net>
Thu, 14 Jul 2016 07:49:21 +0000 (09:49 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 19 Sep 2016 10:51:09 +0000 (12:51 +0200)
src/tm-threads.c

index fa84364963cc8d024c8b0f6317c7a0c02c00f65e..c5699e82ad4cfb5210090c4a5a4d77d0b7f7d355 100644 (file)
@@ -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;
 }