AMPI: fix mismatched free/delete[] identified by valgrind
[charm.git] / src / arch / net / machine-recover.c
blob1e776bc45508ba2726747743132f4f79b49438bc
1 extern void (*notify_crash_fn)(int);
3 /**
4 * @brief Handles the crash announcement message.
5 * For double in-memory checkpoint, it calls the notify crash function.
6 */
7 static void crash_node_handle(ChMessage *m){
8 ChMessageInt_t *d = (ChMessageInt_t *)m->data;
9 int crashed_node = ChMessageInt(d[0]);
10 #if CMK_MEM_CHECKPOINT
11 if (notify_crash_fn!=NULL) notify_crash_fn(crashed_node);
12 #endif
13 /* tell charmrun we knew */
14 ctrl_sendone_nolock("crash_ack",NULL,0,NULL,0);
15 // fprintf(stdout,"[%d] got crash mesg for %d \n",CmiMyPe(),crashed_node);