diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-30 22:57:20 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-30 22:57:20 +0000 |
commit | c4d918070d08fd990cac68b5345138bd0ecfaf87 (patch) | |
tree | 9538785f5419e3fac4ab397e082a0dee9e246d8f /linux-user | |
parent | f5545b5c3a734e28647c0b591addb66535d5490d (diff) |
Copy siginfo.si_code.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4632 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/signal.c b/linux-user/signal.c index f054907acc..f066ee5850 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -216,7 +216,7 @@ static inline void host_to_target_siginfo_noswap(target_siginfo_t *tinfo, sig = host_to_target_signal(info->si_signo); tinfo->si_signo = sig; tinfo->si_errno = 0; - tinfo->si_code = 0; + tinfo->si_code = info.si_code; if (sig == SIGILL || sig == SIGFPE || sig == SIGSEGV || sig == SIGBUS || sig == SIGTRAP) { /* should never come here, but who knows. The information for |