Making more robust signal on charmdebug upon crash
authorFilippo Gioachin <gioachin@uiuc.edu>
Tue, 12 Oct 2010 01:25:13 +0000 (20:25 -0500)
committerFilippo Gioachin <gioachin@uiuc.edu>
Tue, 12 Oct 2010 01:25:13 +0000 (20:25 -0500)
src/arch/net/machine.c

index 42e8fafa62a731498fb9506a3d2822d39bcaf914..890acc51aa2759adabe87f510ce1b8f89b046a30 100644 (file)
@@ -372,6 +372,8 @@ int n;
   machine_exit(1);
 }
 
+CpvExtern(int, freezeModeFlag);
+
 static void KillOnAllSigs(int sigNo)
 {
   const char *sig="unknown signal";
@@ -382,8 +384,12 @@ static void KillOnAllSigs(int sigNo)
   already_in_signal_handler=1;
 
   if (CpvAccess(cmiArgDebugFlag)) {
+    int reply = 0;
     CpdNotify(CPD_SIGNAL,sigNo);
-    CpdFreeze();
+    CcsSendReplyNoError(4,&reply);/*Send an empty reply if not*/
+    CpvAccess(freezeModeFlag) = 1;
+    CpdFreezeModeScheduler();
+    /*CpdFreeze();*/
   }
   
   CmiDestoryLocks();           /* destory locks */