git: b57eb8059665 - main - kern_sig.c: make pt_attach_transparent global
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 29 May 2025 14:29:41 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=b57eb80596651c1f5972f3b6cd21ef95cc95ac85 commit b57eb80596651c1f5972f3b6cd21ef95cc95ac85 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2025-05-27 21:08:12 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2025-05-29 14:26:52 +0000 kern_sig.c: make pt_attach_transparent global Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differrential revision: https://reviews.freebsd.org/D50556 --- sys/kern/kern_sig.c | 2 +- sys/sys/signalvar.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 4637a1218bf1..f5ebd7c7b1ce 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -174,7 +174,7 @@ SYSCTL_BOOL(_kern, OID_AUTO, sig_discard_ign, CTLFLAG_RWTUN, "Discard ignored signals on delivery, otherwise queue them to " "the target queue"); -static bool pt_attach_transparent = true; +bool pt_attach_transparent = true; SYSCTL_BOOL(_debug, OID_AUTO, ptrace_attach_transparent, CTLFLAG_RWTUN, &pt_attach_transparent, 0, "Hide wakes from PT_ATTACH on interruptible sleeps"); diff --git a/sys/sys/signalvar.h b/sys/sys/signalvar.h index 18e21e33c241..23e8426b26ee 100644 --- a/sys/sys/signalvar.h +++ b/sys/sys/signalvar.h @@ -270,6 +270,7 @@ int __sys_sigfastblock(int cmd, void *ptr); #ifdef _KERNEL extern bool sigfastblock_fetch_always; +extern bool pt_attach_transparent; /* Return nonzero if process p has an unmasked pending signal. */ #define SIGPENDING(td) \