From 513320c0f1122f096468c0b01623ba7c7e77cbe2 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Mon, 11 Jan 2021 19:07:10 +0200 Subject: [PATCH] sigfastblock_setpend(): do not set PEND user flag unless TDP_SIGFASTPENDING is set. User pending bit should not be set if kernel did not noted a pending signal. Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D28089 --- sys/kern/kern_sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 004aabdcb84e..7884b5be9f91 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -4213,7 +4213,7 @@ sigfastblock_setpend1(struct thread *td) int res; uint32_t oldval; - if ((td->td_pflags & TDP_SIGFASTBLOCK) == 0) + if ((td->td_pflags & TDP_SIGFASTPENDING) == 0) return; res = fueword32((void *)td->td_sigblock_ptr, &oldval); if (res == -1) {