diff --git a/lib/libthr/thread/thr_sig.c b/lib/libthr/thread/thr_sig.c index 4acfe4017ef2..66358dbec5f5 100644 --- a/lib/libthr/thread/thr_sig.c +++ b/lib/libthr/thread/thr_sig.c @@ -321,7 +321,7 @@ check_deferred_signal(struct pthread *curthread) if (__predict_true(curthread->deferred_siginfo.si_signo == 0)) return; getcontext(&uc); - if (curthread->deferred_siginfo.si_signo == 0) { + if (curthread->deferred_siginfo.si_signo != 0) { act = curthread->deferred_sigact; uc.uc_sigmask = curthread->deferred_sigmask; memcpy(&info, &curthread->deferred_siginfo, sizeof(siginfo_t));