Skip to content

Commit

Permalink
Convert signal number for thr_kill() to host signum.
Browse files Browse the repository at this point in the history
  • Loading branch information
staceyson committed Nov 22, 2014
1 parent cfd5876 commit cab0d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bsd-user/freebsd/os-thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ static abi_long do_freebsd_thr_exit(CPUArchState *cpu_env, abi_ulong tid_addr)
static abi_long do_freebsd_thr_kill(long id, int sig)
{

return get_errno(thr_kill(id, sig));
return get_errno(thr_kill(id, target_to_host_signal(sig)));
}

static abi_long do_freebsd_thr_kill2(pid_t pid, long id, int sig)
{

return get_errno(thr_kill2(pid, id, sig));
return get_errno(thr_kill2(pid, id, target_to_host_signal(sig)));
}

static abi_long do_freebsd_thr_suspend(abi_ulong target_ts)
Expand Down

0 comments on commit cab0d36

Please sign in to comment.