Skip to content

Commit 68c15a2

Browse files
jmberg-intelrichardweinberger
authored andcommitted
um: Remove sig_info[SIGALRM]
This entry is misleading, the actual signal handler is another one that never uses sig_info. Also remove the SIGALRM if inside sig_handler() for the same reason. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Acked-by: Anton Ivanov <anton.ivanov@cambridgegreys.co.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent d47761d commit 68c15a2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎arch/um/os-Linux/signal.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ void (*sig_info[NSIG])(int, struct siginfo *, struct uml_pt_regs *) = {
2626
[SIGBUS] = bus_handler,
2727
[SIGSEGV] = segv_handler,
2828
[SIGIO] = sigio_handler,
29-
[SIGALRM] = timer_handler
3029
};
3130

3231
static void sig_handler_common(int sig, struct siginfo *si, mcontext_t *mc)
@@ -42,7 +41,7 @@ static void sig_handler_common(int sig, struct siginfo *si, mcontext_t *mc)
4241
}
4342

4443
/* enable signals if sig isn't IRQ signal */
45-
if ((sig != SIGIO) && (sig != SIGWINCH) && (sig != SIGALRM))
44+
if ((sig != SIGIO) && (sig != SIGWINCH))
4645
unblock_signals();
4746

4847
(*sig_info[sig])(sig, si, &r);

0 commit comments

Comments
 (0)