sigbus: Make sure the signal is delivered to the same thread

This commit is contained in:
Daan De Meyer
2022-11-16 15:07:23 +01:00
parent a54219532d
commit ee69f2b414
+1 -1
View File
@@ -102,7 +102,7 @@ static void sigbus_handler(int sn, siginfo_t *si, void *data) {
if (si->si_code != BUS_ADRERR || !si->si_addr) {
assert_se(sigaction(SIGBUS, &old_sigaction, NULL) == 0);
rt_sigqueueinfo(getpid_cached(), SIGBUS, si);
rt_tgsigqueueinfo(getpid_cached(), gettid(), SIGBUS, si);
return;
}