Commit 0aeaa8ce4f441fec211794e4380b1eb0948ac9c1

Authored by ths
1 parent 1e0e6d8b

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
Showing 1 changed file with 1 additions and 1 deletions
linux-user/signal.c
... ... @@ -422,7 +422,7 @@ int do_sigaction(int sig, const struct target_sigaction *act,
422 422 struct sigaction act1;
423 423 int host_sig;
424 424  
425   - if (sig < 1 || sig > TARGET_NSIG)
  425 + if (sig < 1 || sig > TARGET_NSIG || sig == SIGKILL || sig == SIGSTOP)
426 426 return -EINVAL;
427 427 k = &sigact_table[sig - 1];
428 428 #if defined(DEBUG_SIGNAL)
... ...