Don't let sigaction handle SIGKILL/SIGSTOP, by Stuart Anderson.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 31 Mar 2007 19:29:06 +0000 (19:29 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 31 Mar 2007 19:29:06 +0000 (19:29 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2561 c046a42c-6fe2-441c-8c8c-71466251a162

linux-user/signal.c

index 8ee5c4b..1e29c2c 100644 (file)
@@ -422,7 +422,7 @@ int do_sigaction(int sig, const struct target_sigaction *act,
     struct sigaction act1;
     int host_sig;
 
-    if (sig < 1 || sig > TARGET_NSIG)
+    if (sig < 1 || sig > TARGET_NSIG || sig == SIGKILL || sig == SIGSTOP)
         return -EINVAL;
     k = &sigact_table[sig - 1];
 #if defined(DEBUG_SIGNAL)