Be more verbose when installing the signals.

llvm-svn: 157693
This commit is contained in:
Alexander Potapenko 2012-05-30 15:29:11 +00:00
parent 6e216bea86
commit bb50e7f08c
1 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,9 @@ static void MaybeInstallSigaction(int signum,
sigact.sa_flags = SA_SIGINFO;
if (FLAG_use_sigaltstack) sigact.sa_flags |= SA_ONSTACK;
CHECK(0 == REAL(sigaction)(signum, &sigact, 0));
if (FLAG_v >= 1) {
Report("Installed the sigaction for signal %d\n", signum);
}
}
static void ASAN_OnSIGSEGV(int, siginfo_t *siginfo, void *context) {