aboutsummaryrefslogtreecommitdiff
path: root/linux-user/signal.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-30 18:05:19 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-30 18:05:19 +0000
commit4cb05961c2d637d2cad237755e544d725a941b9a (patch)
tree845e59aad9360c381459d90439ffc57ee3f06b19 /linux-user/signal.c
parentf8ed7070ea2f314f63e54ddf73eb5e071cf00327 (diff)
Perform target->host signal mapping for *kill syscalls.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4625 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/signal.c')
-rw-r--r--linux-user/signal.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/linux-user/signal.c b/linux-user/signal.c
index ef9b7356c2..c3b0cde3b9 100644
--- a/linux-user/signal.c
+++ b/linux-user/signal.c
@@ -113,11 +113,15 @@ static inline int sas_ss_flags(unsigned long sp)
static inline int host_to_target_signal(int sig)
{
+ if (sig > 64)
+ return sig;
return host_to_target_signal_table[sig];
}
-static inline int target_to_host_signal(int sig)
+int target_to_host_signal(int sig)
{
+ if (sig > 64)
+ return sig;
return target_to_host_signal_table[sig];
}