mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Perform target->host signal mapping for *kill syscalls.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4625 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
f8ed7070ea
commit
4cb05961c2
3 changed files with 10 additions and 4 deletions
|
@ -3488,7 +3488,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
|
|||
ret = 0;
|
||||
break;
|
||||
case TARGET_NR_kill:
|
||||
ret = get_errno(kill(arg1, arg2));
|
||||
ret = get_errno(kill(arg1, target_to_host_signal(arg2)));
|
||||
break;
|
||||
case TARGET_NR_rename:
|
||||
{
|
||||
|
@ -5583,13 +5583,14 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
|
|||
|
||||
#if defined(TARGET_NR_tkill) && defined(__NR_tkill)
|
||||
case TARGET_NR_tkill:
|
||||
ret = get_errno(sys_tkill((int)arg1, (int)arg2));
|
||||
ret = get_errno(sys_tkill((int)arg1, target_to_host_signal(arg2)));
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TARGET_NR_tgkill) && defined(__NR_tgkill)
|
||||
case TARGET_NR_tgkill:
|
||||
ret = get_errno(sys_tgkill((int)arg1, (int)arg2, (int)arg3));
|
||||
ret = get_errno(sys_tgkill((int)arg1, (int)arg2,
|
||||
target_to_host_signal(arg3)));
|
||||
break;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue