Commit de96858e authored by Bernd Paysan's avatar Bernd Paysan

Darwin uses SIGBUS instead of SIGSEGV

parent 7b0fec54
Pipeline #1182 passed with stage
in 9 minutes and 57 seconds
......@@ -136,7 +136,11 @@ signal_throw(int sig)
case SIGINT: code=-28; break;
case SIGFPE: code=-55; break;
#ifdef SIGBUS
#ifdef __APPLE__
case SIGBUS: code=-9; break; /* On MacOS, this is not an alignment exception */
#else
case SIGBUS: code=-23; break;
#endif
#endif
case SIGSEGV: code=-9; break;
#ifdef SIGPIPE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment