[llvm-commits] [compiler-rt] r157625 - /compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc

Dmitry Vyukov dvyukov at google.com
Tue May 29 08:51:27 PDT 2012


Author: dvyukov
Date: Tue May 29 10:51:27 2012
New Revision: 157625

URL: http://llvm.org/viewvc/llvm-project?rev=157625&view=rev
Log:
tsan: prevent recursive signal handlers

Modified:
    compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc

Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc?rev=157625&r1=157624&r2=157625&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc Tue May 29 10:51:27 2012
@@ -1256,6 +1256,7 @@
     return 0;
   sigactions[sig] = *act;
   sigaction_t newact = *act;
+  sigfillset(&newact.sa_mask);
   if (act->sa_handler != SIG_IGN && act->sa_handler != SIG_DFL) {
     if (newact.sa_flags & SA_SIGINFO)
       newact.sa_sigaction = rtl_sigaction;





More information about the llvm-commits mailing list