summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_posix_libcdep.cc
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2016-09-08 19:16:01 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2016-09-08 19:16:01 +0000
commitf5a665d965b8170a33c676e90bce521b8b75e4f7 (patch)
tree01b338707fd4aa2850deefdcb6271de396f6e1a9 /lib/sanitizer_common/sanitizer_posix_libcdep.cc
parentff3893fc1eb3f5cdf7d5e4a8dbfa31255802e4d2 (diff)
Fix tsan-go build.
Disable the new abort-in-SIGABRT code under SANITIZER_GO. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@280980 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_posix_libcdep.cc')
-rw-r--r--lib/sanitizer_common/sanitizer_posix_libcdep.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_posix_libcdep.cc b/lib/sanitizer_common/sanitizer_posix_libcdep.cc
index 773de69d4..1a3e9602e 100644
--- a/lib/sanitizer_common/sanitizer_posix_libcdep.cc
+++ b/lib/sanitizer_common/sanitizer_posix_libcdep.cc
@@ -128,6 +128,7 @@ void SleepForMillis(int millis) {
}
void Abort() {
+#ifndef SANITIZER_GO
// If we are handling SIGABRT, unhandle it first.
if (IsHandledDeadlySignal(SIGABRT)) {
struct sigaction sigact;
@@ -135,6 +136,7 @@ void Abort() {
sigact.sa_sigaction = (sa_sigaction_t)SIG_DFL;
internal_sigaction(SIGABRT, &sigact, nullptr);
}
+#endif
abort();
}