mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Fix potential race in bugReportStart
this race would only happen when two threads paniced at the same time, and even then the only consequence is some extra log lines. race reported in #7391
This commit is contained in:
@@ -55,7 +55,7 @@ typedef ucontext_t sigcontext_t;
|
||||
#endif
|
||||
|
||||
/* Globals */
|
||||
static int bug_report_start = 0; /* True if bug report header was already logged. */
|
||||
static _Atomic int bug_report_start = 0; /* True if bug report header was already logged. */
|
||||
|
||||
/* Forward declarations */
|
||||
void bugReportStart(void);
|
||||
|
||||
Reference in New Issue
Block a user