]> git.ipfire.org Git - thirdparty/suricata.git/commit
tm-thread: detect thread death 98/head
authorEric Leblond <eric@regit.org>
Wed, 26 Sep 2012 14:03:33 +0000 (16:03 +0200)
committerEric Leblond <eric@regit.org>
Wed, 26 Sep 2012 14:03:33 +0000 (16:03 +0200)
commitffbbff9d6c13eb5fb4eb4171ac78f7ccc6e266a5
tree69306ec464731969c0565ccbb72a494050811aa9
parentaf7f4b347d04bfff2c5ca2075e288f2009a65c78
tm-thread: detect thread death

When a thread is dead at init the THV_INIT_DONE flag is not set
and the spawn function can freeze (see bug #553 for an example).
In this case THV_RUNNING_DONE is set and we can also check on this
state for leaving the function. This should fix #bug553
src/tm-threads.c