Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jan 2021 10:46:18 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 513320c0f112 - main - sigfastblock_setpend(): do not set PEND user flag unless TDP_SIGFASTPENDING is set.
Message-ID:  <202101121046.10CAkI3s018157@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=513320c0f1122f096468c0b01623ba7c7e77cbe2

commit 513320c0f1122f096468c0b01623ba7c7e77cbe2
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-01-11 17:07:10 +0000
Commit:     Konstantin Belousov <kib@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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101121046.10CAkI3s018157>