tsan: mark sigwait as blocking
authorDmitry Vyukov <dvyukov@google.com>
Fri, 7 May 2021 09:16:03 +0000 (11:16 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Wed, 12 May 2021 04:56:18 +0000 (06:56 +0200)
commit5dad3d1ba9ad01152be21e94cfbbfb31659ea3e1
treebf4febfedf5897a2a2c3e338425d7588dad1455f
parent04b2ada51c90a76b153eedafd8d52a2649695a7f
tsan: mark sigwait as blocking

Add a test case reported in:
https://github.com/google/sanitizers/issues/1401
and fix it.
The code assumes sigwait will process other signals.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D102057
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/test/tsan/signal_block2.cpp [new file with mode: 0644]