From: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
To: rafael@kernel.org, daniel.lezcano@linaro.org,
rui.zhang@intel.com, lukasz.luba@arm.com
Cc: linux-pm@vger.kernel.org,
Kaushlendra Kumar <kaushlendra.kumar@intel.com>
Subject: [PATCH] tools/thermal: Remove unreachable SIGKILL handler
Date: Wed, 3 Dec 2025 16:20:50 +0530 [thread overview]
Message-ID: <20251203105050.3768446-1-kaushlendra.kumar@intel.com> (raw)
SIGKILL cannot be caught or handled by signal handlers per POSIX;
the kernel delivers it unconditionally. Drop the dead code path
that attempts to register cleanup for SIGKILL.
Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
---
tools/thermal/tmon/tmon.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/tools/thermal/tmon/tmon.c b/tools/thermal/tmon/tmon.c
index 7eb3216a27f4..277d031eb797 100644
--- a/tools/thermal/tmon/tmon.c
+++ b/tools/thermal/tmon/tmon.c
@@ -104,10 +104,6 @@ static void tmon_sig_handler(int sig)
printf("sigterm, exit and clean up\n");
fflush(stdout);
break;
- case SIGKILL:
- printf("sigkill, exit and clean up\n");
- fflush(stdout);
- break;
case SIGINT:
printf("ctrl-c, exit and clean up\n");
fflush(stdout);
--
2.34.1
reply other threads:[~2025-12-03 10:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251203105050.3768446-1-kaushlendra.kumar@intel.com \
--to=kaushlendra.kumar@intel.com \
--cc=daniel.lezcano@linaro.org \
--cc=linux-pm@vger.kernel.org \
--cc=lukasz.luba@arm.com \
--cc=rafael@kernel.org \
--cc=rui.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).