git: cf5731ee5a6f - stable/13 - signal: Make the signal disposition table const
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 08 Jun 2023 13:16:48 UTC
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=cf5731ee5a6fd8545eaf9eea02eab3c5dc1e9c61 commit cf5731ee5a6fd8545eaf9eea02eab3c5dc1e9c61 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2023-06-01 21:11:55 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2023-06-08 13:16:34 +0000 signal: Make the signal disposition table const No functional change intended. MFC after: 1 week (cherry picked from commit 0d3f1b4f25150c3c5afaa669715421821323ead1) --- 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 63d73cf7a909..539c020c183e 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -219,7 +219,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,