do not catch signal if not built for charmdebug
[charm.git] / src / arch / mpi / machine.c
index b6ede634a6b691b741a53d46d615a0f2e24b83ca..e7f14237d7fb6ea06fd702499ea9ac9c15625882 100644 (file)
@@ -1066,6 +1066,7 @@ static void MachineInitForMPI(int *argc, char ***argv, int *numNodes, int *myNod
         printf("Charm++: Running in idle blocking mode.\n");
     }
 
+#if CMK_CHARMDEBUG
     /* setup signal handlers */
     signal(SIGSEGV, KillOnAllSigs);
     signal(SIGFPE, KillOnAllSigs);
@@ -1077,6 +1078,7 @@ static void MachineInitForMPI(int *argc, char ***argv, int *numNodes, int *myNod
     signal(SIGQUIT, KillOnAllSigs);
     signal(SIGBUS, KillOnAllSigs);
 #   endif /*UNIX*/
+#endif
 
 #if CMK_NO_OUTSTANDING_SENDS
     no_outstanding_sends=1;