um: Remove sig_info[SIGALRM]
authorJohannes Berg <johannes.berg@intel.com>
Fri, 23 Aug 2019 10:44:26 +0000 (12:44 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 15 Sep 2019 19:37:10 +0000 (21:37 +0200)
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>
arch/um/os-Linux/signal.c

index 75b1023..35d1b2b 100644 (file)
@@ -26,7 +26,6 @@ void (*sig_info[NSIG])(int, struct siginfo *, struct uml_pt_regs *) = {
        [SIGBUS]        = bus_handler,
        [SIGSEGV]       = segv_handler,
        [SIGIO]         = sigio_handler,
-       [SIGALRM]       = timer_handler
 };
 
 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)
        }
 
        /* enable signals if sig isn't IRQ signal */
-       if ((sig != SIGIO) && (sig != SIGWINCH) && (sig != SIGALRM))
+       if ((sig != SIGIO) && (sig != SIGWINCH))
                unblock_signals();
 
        (*sig_info[sig])(sig, si, &r);