do not catch signal if not built for charmdebug
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 14 Oct 2011 06:35:30 +0000 (23:35 -0700)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 14 Oct 2011 06:35:30 +0000 (23:35 -0700)
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;