Merge pull request #43009 from azat/fix-tsan

Fix TSan errors (correctly ignore _exit interception)
This commit is contained in:
Alexander Tokmakov 2022-11-07 22:20:53 +03:00 committed by GitHub
commit fc77d53db1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,10 @@
#if defined(OS_LINUX)
# include <sys/syscall.h>
#endif
#include <cstdlib>
#include <unistd.h>
#include <base/safeExit.h>
#include <base/defines.h> /// for THREAD_SANITIZER
[[noreturn]] void safeExit(int code)
{