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
This commit is contained in:
ths 2007-03-31 19:29:06 +00:00
parent 1e0e6d8be9
commit 0aeaa8ce4f

View 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)