Many changes, bugfixes to user vsnprintf and to escape code handling
[tpg/acess2.git] / Kernel / threads.c
index f726f27..0a9ab37 100644 (file)
@@ -266,10 +266,11 @@ int Threads_WaitTID(int TID, int *status)
                 int    initStatus = t->Status;
                 int    ret;
                
-               if(initStatus != THREAD_STAT_ZOMBIE)
+               if(initStatus != THREAD_STAT_ZOMBIE) {
                        while(t->Status == initStatus) {
                                Threads_Yield();
                        }
+               }
                
                ret = t->RetStatus;
                switch(t->Status)

UCC git Repository :: git.ucc.asn.au