diff options
author | fanwenjie <fanwj@mail.ustc.edu.cn> | 2022-08-31 11:55:25 +0800 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2022-09-27 13:19:05 +0200 |
commit | 9b9145f04d303354d8da1112577ece26aaf478dd (patch) | |
tree | 63420934cc93be24e4464871ae9dcf45d8758cff /linux-user/syscall.c | |
parent | 2319a53758efd0a2a1b45d94d3a3b721730cbc00 (diff) | |
download | qemu-9b9145f04d303354d8da1112577ece26aaf478dd.zip qemu-9b9145f04d303354d8da1112577ece26aaf478dd.tar.gz qemu-9b9145f04d303354d8da1112577ece26aaf478dd.tar.bz2 |
linux-user: fix bug about missing signum convert of sigqueue
Fixes: 66fb9763af ("basic signal handling")
Fixes: cf8b8bfc50 ("linux-user: add support for rt_tgsigqueueinfo() system call")
Signed-off-by: fanwenjie <fanwj@mail.ustc.edu.cn>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r-- | linux-user/syscall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index f87b36b..54b29f3 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -9728,7 +9728,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, } target_to_host_siginfo(&uinfo, p); unlock_user(p, arg3, 0); - ret = get_errno(sys_rt_sigqueueinfo(arg1, arg2, &uinfo)); + ret = get_errno(sys_rt_sigqueueinfo(arg1, target_to_host_signal(arg2), &uinfo)); } return ret; case TARGET_NR_rt_tgsigqueueinfo: @@ -9741,7 +9741,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, } target_to_host_siginfo(&uinfo, p); unlock_user(p, arg4, 0); - ret = get_errno(sys_rt_tgsigqueueinfo(arg1, arg2, arg3, &uinfo)); + ret = get_errno(sys_rt_tgsigqueueinfo(arg1, arg2, target_to_host_signal(arg3), &uinfo)); } return ret; #ifdef TARGET_NR_sigreturn |