commit - f4b23bfc965787dd096b70ff3dd1cc41800abdd2
commit + 1c00ddffec83f60c37e5f1885b08256d563c6464
blob - 544f2430b8b2144609e4a91c043ee90c4f001a17
blob + 5b3911a550701f223d9465495d0d12c2c8699cf8
--- src/ngircd/log.c
+++ src/ngircd/log.c
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*
- * $Id: log.c,v 1.26 2002/03/27 21:03:09 alex Exp $
+ * $Id: log.c,v 1.27 2002/03/29 20:59:22 alex Exp $
*
* log.c: Logging-Funktionen
*/
#include "log.h"
+LOCAL CHAR Error_File[FNAME_LEN];
+
+
LOCAL VOID Wall_ServerNotice( CHAR *Msg );
if( txt[0] ) Log( LOG_INFO, "Activating: %s.", txt );
/* stderr in Datei umlenken */
+ sprintf( Error_File, ERROR_DIR"/"PACKAGE"-%ld.err", (INT32)getpid( ));
fflush( stderr );
- if( ! freopen( ERROR_FILE, "a+", stderr )) Log( LOG_ERR, "Can't reopen stderr (\""ERROR_FILE"\"): %s", strerror( errno ));
+ if( ! freopen( Error_File, "a+", stderr )) Log( LOG_ERR, "Can't reopen stderr (\"%s\"): %s", Error_File, strerror( errno ));
fprintf( stderr, "\n--- %s ---\n\n", NGIRCd_StartStr );
fprintf( stderr, "%s started.\npid=%ld, ppid=%ld, uid=%ld, gid=%ld [euid=%ld, egid=%ld].\nActivating: %s\n\n", NGIRCd_Version( ), (INT32)getpid( ), (INT32)getppid( ), (INT32)getuid( ), (INT32)getgid( ), (INT32)geteuid( ), (INT32)getegid( ), txt[0] ? txt : "-" );
fprintf( stderr, PACKAGE" done (pid=%ld).\n", (INT32)getpid( ));
fflush( stderr );
+ /* Error-File (stderr) loeschen */
+ if( unlink( Error_File ) != 0 ) Log( LOG_ERR, "Can't delete \"%s\": %s", Error_File, strerror( errno ));
+
#ifdef USE_SYSLOG
/* syslog abmelden */
closelog( );
blob - a2b4666f1fc8263b71df8e910700a296edd7a10f
blob + e386812de91cb52e878c6a23568c87bf12cb5f3b
--- src/ngircd/ngircd.c
+++ src/ngircd/ngircd.c
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*
- * $Id: ngircd.c,v 1.37 2002/03/28 14:15:33 alex Exp $
+ * $Id: ngircd.c,v 1.38 2002/03/29 20:59:22 alex Exp $
*
* ngircd.c: Hier beginnt alles ;-)
*/
Log_Exit( );
}
-#ifndef DEBUG
- /* aufraeumen */
- if( unlink( ERROR_FILE ) != 0 ) Log( LOG_ERR, "Can't delete \""ERROR_FILE"\": %s", strerror( errno ));
-#endif
-
return 0;
} /* main */