From 6789e1bb77c030c25ba5686c784bf4966770c324 Mon Sep 17 00:00:00 2001 From: Thurston Dang Date: Wed, 10 Jul 2024 21:22:58 +0000 Subject: [PATCH] [sanitizer_common] Fix forward: limit #98200 to Linux only My patch broke Solaris: https://github.com/llvm/llvm-project/pull/98200#issuecomment-2221463400 Fixing forward by limiting the change to Linux only. --- compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp index 54f972c74794b2..f7f5698a5f32d5 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp +++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp @@ -170,7 +170,6 @@ void BlockSignals(__sanitizer_sigset_t *oldset) { // If this signal is blocked, such calls cannot be handled and the process may // hang. internal_sigdelset(&set, 31); -# endif // Don't block synchronous signals internal_sigdelset(&set, SIGSEGV); @@ -180,6 +179,7 @@ void BlockSignals(__sanitizer_sigset_t *oldset) { internal_sigdelset(&set, SIGABRT); internal_sigdelset(&set, SIGFPE); internal_sigdelset(&set, SIGPIPE); +# endif SetSigProcMask(&set, oldset); }