diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-03-31 19:29:06 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-03-31 19:29:06 +0000 |
commit | 0aeaa8ce4f441fec211794e4380b1eb0948ac9c1 (patch) | |
tree | ff4451d3114590ee8b0ac50b2c1f82252185157e /linux-user/signal.c | |
parent | 1e0e6d8be9114ac4f1b9abde5a8852949c242eb5 (diff) |
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
Diffstat (limited to 'linux-user/signal.c')
-rw-r--r-- | linux-user/signal.c | 2 |
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) |