FreeBSD/contrib/ntp/ntpd/ntpd.c
/*
 * library_fatal_error - Handle fatal errors from our libraries.
 */
Handle fatal errors from our libraries.
Handle fatal errors from our libraries .
static void
library_fatal_error(
	const char *file,
	int line,
	const char *format,
	va_list args
	)
{
	char errbuf[256];
	isc_error_setfatal(NULL);  
	msyslog(LOG_ERR, "%s:%d: fatal error:", file, line);
	vsnprintf(errbuf, sizeof(errbuf), format, args);
	msyslog(LOG_ERR, "%s", errbuf);
	msyslog(LOG_ERR, "exiting (due to fatal error in library)");
#if defined(DEBUG) && defined(SYS_WINNT)
	if (debug)
		DebugBreak();
#endif
	abort();
}
static void library_fatal_error ( const char * file , int line , const char * format , va_list args ) { char errbuf [ 256 ] ; isc_error_setfatal ( NULL ) ; msyslog ( LOG_ERR , " " , file , line ) ; vsnprintf ( errbuf , sizeof ( errbuf ) , format , args ) ; msyslog ( LOG_ERR , " " , errbuf ) ; msyslog ( LOG_ERR , " " ) ; #if defined ( DEBUG ) && defined ( SYS_WINNT ) if ( debug ) DebugBreak ( ) ; #endif abort ( ) ; }
library_fatal_error - Handle fatal errors from our libraries.
library_fatal_error - Handle fatal errors from our libraries .
/* Avoid recursion */