Skip to contentSkip to conversation

tools/thermal: Remove unreachable SIGKILL handler

PATCH New Kaushlendra Kumar 1 participant 1 message Dec 3, 2025 Thermal

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/thermal: Remove unreachable SIGKILL handler

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.

---
 tools/thermal/tmon/tmon.c | 4 ----
 1 file changed, 4 deletions(-)
tools/thermal/tmon/tmon.c +0 -4
index 7eb3216a27f4..277d031eb797 100644
@@ -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);
Signature · 1 line
2.34.1