summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-11-20 16:17:50 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-11-20 16:17:50 +0100
commit306b3a01ae4ad3f6e7c8d55d87051b9d44f91471 (patch)
treed6a16d4b44581fc16434078c8f9f89a81f80edde
parentf5e06c2d773955f076060b55d9e4d6d13feba950 (diff)
parenteddac2db6083c50a967948f6bdc4ab7cb10d8226 (diff)
Merge commit 'refs/top-bases/tschwinge/Roger_Whittaker' into tschwinge/Roger_Whittaker
-rw-r--r--sysdeps/mach/hurd/i386/exc2signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/i386/exc2signal.c b/sysdeps/mach/hurd/i386/exc2signal.c
index b2606c48cb..feb9e2de1c 100644
--- a/sysdeps/mach/hurd/i386/exc2signal.c
+++ b/sysdeps/mach/hurd/i386/exc2signal.c
@@ -52,7 +52,7 @@ exception2signal (struct hurd_signal_detail *detail, int *signo, int posix)
default:
*signo = SIGBUS;
- detail->code = 0;
+ detail->code = posix ? BUS_ADRERR : detail->exc_subcode;
break;
}
detail->error = detail->exc_code;