Skip to contentSkip to conversation

UML - Fix botched signal handling patch

PATCH New Jeff Dike 1 participant 1 message Aug 7, 2006 User-mode Linux (UML)

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 1/1 UML - Fix botched signal handling patch

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.

arch/um/os-Linux/signal.c +2 -1
Index: linux-2.6.18-mm/arch/um/os-Linux/signal.c
===================================================================
@@ -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);
 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel