Browse Source

ENH: Treating SIGBUS as a fault by default.

Brad King 22 years ago
parent
commit
ef603d12f9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/kwsys/ProcessUNIX.c

+ 3 - 0
Source/kwsys/ProcessUNIX.c

@@ -672,6 +672,9 @@ int kwsysProcess_WaitForExit(kwsysProcess* cp, double* userTimeout)
 #ifdef SIGSEGV
       case SIGSEGV: cp->ExitException = kwsysProcess_Exception_Fault; break;
 #endif
+#ifdef SIGBUS
+      case SIGBUS: cp->ExitException = kwsysProcess_Exception_Fault; break;
+#endif
 #ifdef SIGFPE
       case SIGFPE:  cp->ExitException = kwsysProcess_Exception_Numerical; break;
 #endif