[compiler-rt] r214289 - [msan] Use SIGHUP instead of SIGUSR1 in test.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Wed Jul 30 01:17:58 PDT 2014


Author: eugenis
Date: Wed Jul 30 03:17:58 2014
New Revision: 214289

URL: http://llvm.org/viewvc/llvm-project?rev=214289&view=rev
Log:
[msan] Use SIGHUP instead of SIGUSR1 in test.

Apparently, SIGUSR1 does not work on x86_64+ArchLinux for some reason.

For more details, see:
https://groups.google.com/forum/#!topic/llvm-dev/4Ag1FF4M2Dw

Modified:
    compiler-rt/trunk/test/msan/chained_origin_with_signals.cc

Modified: compiler-rt/trunk/test/msan/chained_origin_with_signals.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/msan/chained_origin_with_signals.cc?rev=214289&r1=214288&r2=214289&view=diff
==============================================================================
--- compiler-rt/trunk/test/msan/chained_origin_with_signals.cc (original)
+++ compiler-rt/trunk/test/msan/chained_origin_with_signals.cc Wed Jul 30 03:17:58 2014
@@ -25,9 +25,9 @@ int main(int argc, char *argv[]) {
   int volatile z;
   x = z;
 
-  signal(SIGUSR1, SignalHandler);
-  kill(getpid(), SIGUSR1);
-  signal(SIGUSR1, SIG_DFL);
+  signal(SIGHUP, SignalHandler);
+  kill(getpid(), SIGHUP);
+  signal(SIGHUP, SIG_DFL);
 
   return y;
 }





More information about the llvm-commits mailing list