#DPATCHLEVEL=0
---
# linux-user/signal.c |    5 +++++
# 1 file changed, 5 insertions(+)
#
Index: linux-user/signal.c
===================================================================
--- linux-user/signal.c.orig	2007-06-13 11:51:54.000000000 +0100
+++ linux-user/signal.c	2007-06-13 11:52:20.000000000 +0100
@@ -429,6 +429,11 @@ int do_sigaction(int sig, const struct t
 
     if (sig < 1 || sig > TARGET_NSIG || sig == SIGKILL || sig == SIGSTOP)
         return -EINVAL;
+
+    /* no point doing the stuff as those are not allowed for sigaction */
+    if ((sig == TARGET_SIGKILL) || (sig == TARGET_SIGSTOP))
+        return -EINVAL;
+
     k = &sigact_table[sig - 1];
 #if defined(DEBUG_SIGNAL)
     fprintf(stderr, "sigaction sig=%d act=0x%08x, oact=0x%08x\n",