From f773c9e61056b1d625cde1b3b13c84b09ba088ce Mon Sep 17 00:00:00 2001 From: Josh warner Date: Thu, 11 Jun 2009 09:52:13 -0600 Subject: [PATCH] fixed xul deadlock bug on linux --- src/jnienv.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jnienv.cpp b/src/jnienv.cpp index d7e5ea0fdc..7a0b687c4f 100644 --- a/src/jnienv.cpp +++ b/src/jnienv.cpp @@ -62,8 +62,10 @@ AttachCurrentThread(Machine* m, Thread** t, void*) *t = static_cast(m->localThread->get()); if (*t == 0) { *t = m->processor->makeThread(m, 0, m->rootThread); + m->system->attach(&((*t)->runnable)); enter(*t, Thread::ActiveState); + enter(*t, Thread::IdleState); m->localThread->set(*t); }