public inbox for linux-um@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 1/4] arch: um: remove sig_info[SIGALRM]
@ 2019-08-23 10:44 Johannes Berg
  2019-08-23 10:44 ` [PATCH 2/4] arch: um: avoid using uninitialized regs Johannes Berg
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Johannes Berg @ 2019-08-23 10:44 UTC (permalink / raw)
  To: linux-um; +Cc: Johannes Berg

From: Johannes Berg <johannes.berg@intel.com>

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>
---
 arch/um/os-Linux/signal.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/um/os-Linux/signal.c b/arch/um/os-Linux/signal.c
index 75b10235d369..35d1b2bc00cb 100644
--- a/arch/um/os-Linux/signal.c
+++ b/arch/um/os-Linux/signal.c
@@ -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);
-- 
2.20.1


_______________________________________________
linux-um mailing list
linux-um@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-um


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-08-27  5:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-23 10:44 [PATCH 1/4] arch: um: remove sig_info[SIGALRM] Johannes Berg
2019-08-23 10:44 ` [PATCH 2/4] arch: um: avoid using uninitialized regs Johannes Berg
2019-08-27  5:28   ` Anton Ivanov
2019-08-23 10:44 ` [PATCH 3/4] arch: um: remove misleading #define ARCh_IRQ_ENABLED Johannes Berg
2019-08-27  5:28   ` Anton Ivanov
2019-08-23 10:44 ` [PATCH 4/4] arch: um: implement TRACE_IRQFLAGS_SUPPORT Johannes Berg
2019-08-27  5:27 ` [PATCH 1/4] arch: um: remove sig_info[SIGALRM] Anton Ivanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox