Commit 2a913eb118dec726bd5f1dd1c94aa4ffb329afd7

Authored by ths
1 parent 77755340

linux-user: sig is target signal.

Signed-off-by: Riku Voipio <riku.voipio@iki.fi>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5801 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
linux-user/signal.c
@@ -502,7 +502,7 @@ int do_sigaction(int sig, const struct target_sigaction *act, @@ -502,7 +502,7 @@ int do_sigaction(int sig, const struct target_sigaction *act,
502 int host_sig; 502 int host_sig;
503 int ret = 0; 503 int ret = 0;
504 504
505 - if (sig < 1 || sig > TARGET_NSIG || sig == SIGKILL || sig == SIGSTOP) 505 + if (sig < 1 || sig > TARGET_NSIG || sig == TARGET_SIGKILL || sig == TARGET_SIGSTOP)
506 return -EINVAL; 506 return -EINVAL;
507 k = &sigact_table[sig - 1]; 507 k = &sigact_table[sig - 1];
508 #if defined(DEBUG_SIGNAL) 508 #if defined(DEBUG_SIGNAL)