From 30f83862460a0ff00c575127d75d90b809449890 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Fri, 31 Mar 2006 21:02:34 +0000
Subject: [PATCH] Mutex protect the log data linked list (should prevent
 crashes under heavy load)

---
 src/sbbs3/websrvr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sbbs3/websrvr.c b/src/sbbs3/websrvr.c
index ee463eccca..008f566b86 100644
--- a/src/sbbs3/websrvr.c
+++ b/src/sbbs3/websrvr.c
@@ -4525,7 +4525,7 @@ void DLLCALL web_server(void* arg)
 
 		lprintf(LOG_INFO,"%04d Web Server thread started", server_socket);
 
-		listInit(&log_list,/* flags */ 0);
+		listInit(&log_list,/* flags */ LINK_LIST_MUTEX);
 		if(startup->options&WEB_OPT_HTTP_LOGGING) {
 			/********************/
 			/* Start log thread */
-- 
GitLab