fix threading bug. Main thread's restart TV code waiting on a failed TV. Now main thread sets the de_init flag before waiting on the failed thread. Thanks to Eric Leblond for reporting it

remotes/origin/master-1.1.x
Anoop Saldanha 14 years ago committed by Victor Julien
parent 737122663c
commit d23e775ae2

@ -1729,6 +1729,7 @@ void TmThreadCheckThreadState(void)
while (tv) {
if (TmThreadsCheckFlag(tv, THV_FAILED)) {
TmThreadsSetFlag(tv, THV_DEINIT);
pthread_join(tv->t, NULL);
if (tv_aof & THV_ENGINE_EXIT || tv->aof & THV_ENGINE_EXIT) {
EngineKill();

Loading…
Cancel
Save