Fixing signal handling for freebsd 7. freebsd now signals sigsegv with code segv_accerr for memory protection faults. updated config.h.

Copied from Perforce
 Change: 178775
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Richard Brooksby 2012-07-30 14:39:40 +01:00
parent 0b1d9d1fbb
commit cd5fa21f07

View file

@ -259,18 +259,16 @@
define what signal number to use, and what si_code value to check.
*/
#if defined(MPS_OS_O1) || defined(MPS_OS_SO)
#if defined(MPS_OS_O1) || defined(MPS_OS_SO) || defined(MPS_OS_FR)
#define PROT_SIGNAL (SIGSEGV)
#elif defined(MPS_OS_FR) || defined(MPS_OS_XC)
#elif defined(MPS_OS_XC)
#define PROT_SIGNAL (SIGBUS)
#endif
#if defined(MPS_OS_XC)
#define PROT_SIGINFO_GOOD(info) (1)
#elif defined(MPS_OS_O1)
#elif defined(MPS_OS_O1) || defined(MPS_OS_FR)
#define PROT_SIGINFO_GOOD(info) ((info)->si_code == SEGV_ACCERR)
#elif defined(MPS_OS_FR)
#define PROT_SIGINFO_GOOD(info) ((info)->si_code == BUS_PAGE_FAULT)
#endif