From: Daan De Meyer Date: Wed, 16 Nov 2022 14:05:24 +0000 (+0100) Subject: sigbus: Make sure the signal is delivered to the same thread X-Git-Tag: v253-rc1~511^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee69f2b414ed3e92238231a166a36652405b857c;p=thirdparty%2Fsystemd.git sigbus: Make sure the signal is delivered to the same thread --- diff --git a/src/basic/sigbus.c b/src/basic/sigbus.c index d570b1df478..8d2c73baf83 100644 --- a/src/basic/sigbus.c +++ b/src/basic/sigbus.c @@ -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; }