aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_sig.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-01-11 17:07:10 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-01-12 10:43:34 +0000
commit513320c0f1122f096468c0b01623ba7c7e77cbe2 (patch)
treef32ab752412f2044f7e46769572acf991955e5e9 /sys/kern/kern_sig.c
parentf74397658390237200cc19cae133ea1073e7bf6d (diff)
downloadsrc-513320c0f1122f096468c0b01623ba7c7e77cbe2.tar.gz
src-513320c0f1122f096468c0b01623ba7c7e77cbe2.zip
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
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r--sys/kern/kern_sig.c2
1 files changed, 1 insertions, 1 deletions
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) {