raise() may not be available
This commit is contained in:
parent
b347bcfa89
commit
daa6cb3e78
@ -481,10 +481,12 @@ _mprotect_readwrite(void *ptr, size_t size)
|
|||||||
__attribute__((noreturn)) static void
|
__attribute__((noreturn)) static void
|
||||||
_out_of_bounds(void)
|
_out_of_bounds(void)
|
||||||
{
|
{
|
||||||
|
# ifndef __wasm__
|
||||||
# ifdef SIGSEGV
|
# ifdef SIGSEGV
|
||||||
raise(SIGSEGV);
|
raise(SIGSEGV);
|
||||||
# elif defined(SIGKILL)
|
# elif defined(SIGKILL)
|
||||||
raise(SIGKILL);
|
raise(SIGKILL);
|
||||||
|
# endif
|
||||||
# endif
|
# endif
|
||||||
abort(); /* not something we want any higher-level API to catch */
|
abort(); /* not something we want any higher-level API to catch */
|
||||||
} /* LCOV_EXCL_LINE */
|
} /* LCOV_EXCL_LINE */
|
||||||
|
Loading…
Reference in New Issue
Block a user