Commit 81f8524a authored by Oran Agra's avatar Oran Agra
Browse files

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
parent 90b717e7
...@@ -55,7 +55,7 @@ typedef ucontext_t sigcontext_t; ...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment