mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-23 21:37:34 +00:00
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:
parent
0b1d9d1fbb
commit
cd5fa21f07
1 changed files with 3 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue