git: 2be717b45a33 - main - kern_sigsuspend: rename wchan

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Mon, 09 Jun 2025 23:53:15 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=2be717b45a33b733d7a79c996897f60c8ed70735

commit 2be717b45a33b733d7a79c996897f60c8ed70735
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-06-09 02:53:00 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-06-09 23:50:51 +0000

    kern_sigsuspend: rename wchan
    
    The existing name "pause" is not most intuitive to guess where the
    process sleep.
    
    Reviewed by:    markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D50752
---
 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 a98bee38e75c..3df4e8f0fb25 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1658,7 +1658,7 @@ kern_sigsuspend(struct thread *td, sigset_t mask)
 	(p->p_sysent->sv_set_syscall_retval)(td, EINTR);
 	for (has_sig = 0; !has_sig;) {
 		while (msleep(&p->p_sigacts, &p->p_mtx, PPAUSE | PCATCH,
-		    "pause", 0) == 0)
+		    "sigsusp", 0) == 0)
 			/* void */;
 		thread_suspend_check(0);
 		mtx_lock(&p->p_sigacts->ps_mtx);