mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 18:54:58 +00: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:
parent
90b717e723
commit
81f8524a12
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user