lib/dgr.c
/** If master, sends a special DGR message to the slave machines
 * indicating that they should exit. If slave, does nothing.
 */
If master, sends a special DGR message to the slave machines
indicating that they should exit. If slave, does nothing.
If master sends a special DGR message to the slave machines indicating that they should exit . If slave does nothing .
static void dgr_exit(void)
{
	if(dgr_is_enabled() && dgr_is_master())
	{
		msg(MSG_DEBUG, "dgr_exit() is informing slaves that the master is exiting.\n");
		dgr_free(); 
		int died = 1;
		dgr_set("!!!dgr_died!!!", &died, sizeof(int));
		dgr_update(1,1);
		dgr_mode = 1;
		dgr_disabled = 1;
	}
}
static void dgr_exit ( void ) { if ( dgr_is_enabled ( ) && dgr_is_master ( ) ) { msg ( MSG_DEBUG , " \n " ) ; dgr_free ( ) ; int died = 1 ; dgr_set ( " " , & died , sizeof ( int ) ) ; dgr_update ( 1 , 1 ) ; dgr_mode = 1 ; dgr_disabled = 1 ; } }
If master, sends a special DGR message to the slave machines
 indicating that they should exit.
If master sends a special DGR message to the slave machines indicating that they should exit .
// clear the list of records to send. // Don't let this get called repeatedly.