When doing shutdown we allow each thread up to 5 seconds to exit on its
authorDave West <davew@uncensored.citadel.org>
Tue, 18 Mar 2008 23:28:55 +0000 (23:28 +0000)
committerDave West <davew@uncensored.citadel.org>
Tue, 18 Mar 2008 23:28:55 +0000 (23:28 +0000)
commite1a06d970d49b80c714f795bae54a50923a1d698
tree150e85e6857ec9477b17747454bd9df9bb8fdb77
parent21e902b7e50d60cfae14aad72e661daf19ba96f4
When doing shutdown we allow each thread up to 5 seconds to exit on its
own after asking it nicely to do so. After 5 seconds we will cancel()
the thread. Its possible that we may loose messages in this manner
since its similar to a SIGTERM. Because of this we write messages to the
log about this event. If we are seeing these entries in the log we need
to track down why the thread is strugling to exit and fix it.
citadel/threads.c
citadel/threads.h