Skip to content

Commit 6789e1b

Browse files
committed
[sanitizer_common] Fix forward: limit #98200 to Linux only
My patch broke Solaris: #98200 (comment) Fixing forward by limiting the change to Linux only.
1 parent 1819323 commit 6789e1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ void BlockSignals(__sanitizer_sigset_t *oldset) {
170170
// If this signal is blocked, such calls cannot be handled and the process may
171171
// hang.
172172
internal_sigdelset(&set, 31);
173-
# endif
174173

175174
// Don't block synchronous signals
176175
internal_sigdelset(&set, SIGSEGV);
@@ -180,6 +179,7 @@ void BlockSignals(__sanitizer_sigset_t *oldset) {
180179
internal_sigdelset(&set, SIGABRT);
181180
internal_sigdelset(&set, SIGFPE);
182181
internal_sigdelset(&set, SIGPIPE);
182+
# endif
183183

184184
SetSigProcMask(&set, oldset);
185185
}

0 commit comments

Comments
 (0)