From 4b50fae4a901d5b461e8bde97119d3e41d0189e9 Mon Sep 17 00:00:00 2001 From: Corey Farrell Date: Fri, 12 Feb 2016 12:01:53 -0500 Subject: [PATCH] Set global_flags to volatile. This change is to allow ast_log_full to check global_flags without locking logchannels. ASTERISK-25782 #close Change-Id: Ibcc5ea3635bc2e639d0fca3c1baf8060a4e5c41c --- main/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/logger.c b/main/logger.c index 46d9cbb..cb71b0c 100644 --- a/main/logger.c +++ b/main/logger.c @@ -79,7 +79,7 @@ static char queue_log_name[256] = QUEUELOG; static char exec_after_rotate[256] = ""; static int filesize_reload_needed; -static unsigned int global_logmask = 0xFFFF; +static volatile unsigned int global_logmask = 0xFFFF; static int queuelog_init; static int logger_initialized; static volatile int next_unique_callid; /* Used to assign unique call_ids to calls */ -- 2.5.0