lkml.org 
[lkml]   [2006]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] UML - Fix botched signal handling patch
Date
From
I botched a previous patch which changed how UML handles signals.  I
left out a bit which sets the signal handler to be one provided by the
architecture.

This patch sets the handler correctly.

Signed-off-by: Jeff Dike <jdike@addtoit.com>

Index: linux-2.6.18-mm/arch/um/os-Linux/signal.c
===================================================================
--- linux-2.6.18-mm.orig/arch/um/os-Linux/signal.c 2006-08-07 10:05:32.000000000 -0400
+++ linux-2.6.18-mm/arch/um/os-Linux/signal.c 2006-08-07 10:15:38.000000000 -0400
@@ -118,7 +118,8 @@ void set_handler(int sig, void (*handler
sigset_t sig_mask;
int mask;

- action.sa_handler = handler;
+ handlers[sig] = (void (*)(int, struct sigcontext *)) handler;
+ action.sa_handler = hard_handler;

sigemptyset(&action.sa_mask);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-08-07 19:19    [W:0.038 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site