Skip to content

Commit

Permalink
sighook: Work around llvm/llvm-project#92313
Browse files Browse the repository at this point in the history
  • Loading branch information
tavianator committed May 16, 2024
1 parent 5e8a7a8 commit 9bb94d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sighook.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "atomic.h"
#include "bfstd.h"
#include "diag.h"
#include "sanity.h"
#include "thread.h"
#include <errno.h>
#include <signal.h>
Expand Down Expand Up @@ -569,7 +570,9 @@ struct sighook *atsigexit(sighook_fn *fn, void *arg) {
}
}

#ifdef SIGRTMIN
// TSan on FreeBSD doesn't support real-time signals
// https://github.com/llvm/llvm-project/issues/92313
#if defined(SIGRTMIN) && !(__FreeBSD__ && SANITIZE_THREAD)
for (int i = SIGRTMIN; i <= SIGRTMAX; ++i) {
if (siginit(i) != 0) {
goto done;
Expand Down

0 comments on commit 9bb94d0

Please sign in to comment.