summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-31 19:29:06 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-31 19:29:06 +0000
commit0aeaa8ce4f441fec211794e4380b1eb0948ac9c1 (patch)
treeff4451d3114590ee8b0ac50b2c1f82252185157e
parent1e0e6d8be9114ac4f1b9abde5a8852949c242eb5 (diff)
downloadqemu-0aeaa8ce4f441fec211794e4380b1eb0948ac9c1.zip
Don't let sigaction handle SIGKILL/SIGSTOP, by Stuart Anderson.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2561 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--linux-user/signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/signal.c b/linux-user/signal.c
index 8ee5c4b2fd..1e29c2c502 100644
--- a/linux-user/signal.c
+++ b/linux-user/signal.c
@@ -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)