diff options
author | Richard Henderson <rth@twiddle.net> | 2012-09-15 11:34:20 -0700 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2012-10-12 14:01:49 +0300 |
commit | a05c64091509056b7e321537196db967f2545601 (patch) | |
tree | 70e9f318fef86ee18f907e937c375ad0cc3d8b81 /linux-user/syscall.c | |
parent | b7fb2310136090aab86004363f7c031b30845f2f (diff) |
linux-user: Fix siginfo handling
Compare signal numbers in the proper domain.
Convert all of the fields for SIGIO and SIGCHLD.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r-- | linux-user/syscall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 89c74ada23..009bf8f1a9 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -4918,7 +4918,7 @@ static int do_futex(target_ulong uaddr, int op, int val, target_ulong timeout, /* Map host to target signal numbers for the wait family of syscalls. Assume all other status bits are the same. */ -static int host_to_target_waitstatus(int status) +int host_to_target_waitstatus(int status) { if (WIFSIGNALED(status)) { return host_to_target_signal(WTERMSIG(status)) | (status & ~0x7f); |