1 extern void (*notify_crash_fn
)(int);
4 * @brief Handles the crash announcement message.
5 * For double in-memory checkpoint, it calls the notify crash function.
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
);
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);