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
58ca0b0be2
commit
10bfd2fc0d
@ -55,7 +55,7 @@ typedef ucontext_t sigcontext_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Globals */
|
/* 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 */
|
/* Forward declarations */
|
||||||
void bugReportStart(void);
|
void bugReportStart(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user