git: 0d3f1b4f2515 - main - signal: Make the signal disposition table const
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 01 Jun 2023 21:19:05 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=0d3f1b4f25150c3c5afaa669715421821323ead1
commit 0d3f1b4f25150c3c5afaa669715421821323ead1
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-06-01 21:11:55 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-06-01 21:18:23 +0000
signal: Make the signal disposition table const
No functional change intended.
MFC after: 1 week
---
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 e0ef60d0ca20..210ef24e52fa 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -220,7 +220,7 @@ SYSCTL_INT(_kern, OID_AUTO, coredump_devctl, CTLFLAG_RW, &coredump_devctl,
#define SIGPROP_IGNORE 0x10 /* ignore by default */
#define SIGPROP_CONT 0x20 /* continue if suspended */
-static int sigproptbl[NSIG] = {
+static const int sigproptbl[NSIG] = {
[SIGHUP] = SIGPROP_KILL,
[SIGINT] = SIGPROP_KILL,
[SIGQUIT] = SIGPROP_KILL | SIGPROP_CORE,