lib/dgr.c
/** Indicates if this process is either a master process or a slave
    process as specified by the DGR environment variables.

    @return 1 if we are a master process or if DGR is
    disabled. Returns 0 if we are a slave process.
*/
Indicates if this process is either a master process or a slave
process as specified by the DGR environment variables.
Indicates if this process is either a master process or a slave process as specified by the DGR environment variables .
int dgr_is_master(void)
{
	if(dgr_disabled)
		return 1;
	else
		return dgr_mode;
}
int dgr_is_master ( void ) { if ( dgr_disabled ) return 1 ; else return dgr_mode ; }
Indicates if this process is either a master process or a slave
process as specified by the DGR environment variables.
Indicates if this process is either a master process or a slave process as specified by the DGR environment variables .