git: 513320c0f112 - main - sigfastblock_setpend(): do not set PEND user flag unless TDP_SIGFASTPENDING is set.
Konstantin Belousov
kib at FreeBSD.org
Tue Jan 12 10:46:19 UTC 2021
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=513320c0f1122f096468c0b01623ba7c7e77cbe2
commit 513320c0f1122f096468c0b01623ba7c7e77cbe2
Author: Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2021-01-11 17:07:10 +0000
Commit: Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-01-12 10:43:34 +0000
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) {
More information about the dev-commits-src-main
mailing list