[PATCH] D14946: [tsan] Fix signal number definitions for OS X
Kuba Brecka via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 24 05:03:33 PST 2015
kubabrecka created this revision.
kubabrecka added reviewers: dvyukov, kcc, samsonov, glider.
kubabrecka added subscribers: llvm-commits, zaks.anna, ismailp.
On OS X, `SIGBUS` is 10 and `SIGSYS` is 12.
http://reviews.llvm.org/D14946
Files:
lib/tsan/rtl/tsan_interceptors.cc
Index: lib/tsan/rtl/tsan_interceptors.cc
===================================================================
--- lib/tsan/rtl/tsan_interceptors.cc
+++ lib/tsan/rtl/tsan_interceptors.cc
@@ -124,7 +124,7 @@
const int SIGSEGV = 11;
const int SIGPIPE = 13;
const int SIGTERM = 15;
-#ifdef __mips__
+#if defined(__mips__) || SANITIZER_MAC
const int SIGBUS = 10;
const int SIGSYS = 12;
#else
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14946.41025.patch
Type: text/x-patch
Size: 392 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151124/a4b2a90b/attachment.bin>
More information about the llvm-commits
mailing list