* Reverted r8058 because it is crashing Uncensored quite a lot.
authorArt Cancro <ajc@citadel.org>
Fri, 20 Nov 2009 03:11:20 +0000 (03:11 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 20 Nov 2009 03:11:20 +0000 (03:11 +0000)
citadel/threads.c

index 40c4cca4c8c55cfde88f00cf6598689a36a6b858..e115306a2e1ed640719304008ec6f7d3fefd6c2d 100644 (file)
@@ -694,13 +694,13 @@ void CtdlThreadGC (void)
                
                if (that_thread->stop_ticker + 5 == time(NULL))
                {
-                       CtdlLogPrintf(CTDL_DEBUG, "Thread System: The thread \"%s\" (0x%08lx) failed to self terminate within 5 ticks. Canceling now.\n", that_thread->name, that_thread->tid);
+                       CtdlLogPrintf(CTDL_DEBUG, "Thread System: The thread \"%s\" (0x%08lx) failed to self terminate within 5 ticks. It would be cancelled now.\n", that_thread->name, that_thread->tid);
                        if ((that_thread->flags & CTDLTHREAD_WORKER) == 0)
                                CtdlLogPrintf(CTDL_INFO, "Thread System: A non worker thread would have been canceled this may cause message loss.\n");
-                       that_thread->state = CTDL_THREAD_CANCELLED;
+//                     that_thread->state = CTDL_THREAD_CANCELLED;
                        that_thread->stop_ticker++;
-                       citthread_cancel(that_thread->tid);
-                       continue;
+//                     citthread_cancel(that_thread->tid);
+//                     continue;
                }
                
                /* Do we need to clean up this thread? */