projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add whether we're in which eventloop / a worker thread to the log output.
[citadel.git]
/
citadel
/
sysdep.c
diff --git
a/citadel/sysdep.c
b/citadel/sysdep.c
index d7872aebe7e0494ed765e2aaaa40d6da0bc034dd..6f14ac4b17d948d02e2f85d46be187346fafb90a 100644
(file)
--- a/
citadel/sysdep.c
+++ b/
citadel/sysdep.c
@@
-1189,7
+1189,7
@@
void HuntBadSession(void)
}
}
-
+const char *WorkerLogStr = "W";
/*
* This loop just keeps going and going and going...
*/
/*
* This loop just keeps going and going and going...
*/
@@
-1210,6
+1210,8
@@
void *worker_thread(void *blah) {
++num_workers;
pthread_mutex_unlock(&ThreadCountMutex);
++num_workers;
pthread_mutex_unlock(&ThreadCountMutex);
+ pthread_setspecific(evConKey, WorkerLogStr);
+
while (!server_shutting_down) {
/* make doubly sure we're not holding any stale db handles
while (!server_shutting_down) {
/* make doubly sure we're not holding any stale db handles