tools/thermal: Remove unreachable SIGKILL handler
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.
Signed-off-by Kaushlendra Kumar <[email protected]>
--- tools/thermal/tmon/tmon.c | 4 ---- 1 file changed, 4 deletions(-)
tools/thermal/tmon/tmon.c +0 -4
@@ -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