-#ifdef DEBUG
-GLOBAL void
-Log_InitErrorfile( void )
-{
- snprintf( Error_File, sizeof Error_File, "%s/%s-%ld.err", ERROR_DIR, PACKAGE_NAME, (long)getpid( ));
-
- fflush( stderr );
- if( ! freopen( Error_File, "w", stderr ))
- {
- Log( LOG_ERR, "Can't reopen stderr (\"%s\"): %s", Error_File, strerror( errno ));
- return;
- }
-
- fputs( ctime( &NGIRCd_Start ), stderr );
- fprintf( stderr, "%s started.\n", NGIRCd_Version );
- fprintf( stderr, "Activating: %s\n\n", Init_Txt[0] ? Init_Txt : "-" );
- fflush( stderr );
-
- Log(LOG_DEBUG, "Redirected stderr to \"%s\".", Error_File);
-} /* Log_InitErrfile */
-#endif
-
-