diff options
author | Kuba Mracek <mracek@apple.com> | 2017-07-05 22:17:44 +0000 |
---|---|---|
committer | Kuba Mracek <mracek@apple.com> | 2017-07-05 22:17:44 +0000 |
commit | f863c64e6e6ec4b46420bd546dea312c0bb3e2f5 (patch) | |
tree | 8ed16283330773501caa7b1e5ca60eecd2a8cb6a /lib/sanitizer_common/sanitizer_errno.h | |
parent | f339952e6e43368ab0f4783bc330a4e5240a4024 (diff) |
[tsan] Use pthread_sigmask instead of sigprocmask to block signals in a thread on Darwin
On Darwin, sigprocmask changes the signal mask for the entire process. This has some unwanted consequences, because e.g. internal_start_thread wants to disable signals only in the current thread (to make the new thread inherit the signal mask), which is currently broken on Darwin. This patch switches to pthread_sigmask.
Differential Revision: https://reviews.llvm.org/D35016
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@307212 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_errno.h')
0 files changed, 0 insertions, 0 deletions