#include "portab.h"
-static char UNUSED id[] = "$Id: ngircd.c,v 1.108 2005/07/31 20:13:08 alex Exp $";
+static char UNUSED id[] = "$Id: ngircd.c,v 1.111 2005/11/21 16:31:30 alex Exp $";
/**
* @file
Log_Init( ! NGIRCd_NoDaemon );
Conf_Init( );
- if (!NGIRCd_Init( NGIRCd_NoDaemon )) {
- Log(LOG_WARNING, "Fatal: Initialization failed");
+ /* Initialize the "main program": chroot environment, user and
+ * group ID, ... */
+ if (!NGIRCd_Init(NGIRCd_NoDaemon)) {
+ Log(LOG_ALERT, "Fatal: Initialization failed");
exit(1);
}
#endif
/* Signal-Handler einhaengen */
- sigaction( SIGINT, &saction, NULL );
- sigaction( SIGQUIT, &saction, NULL );
- sigaction( SIGTERM, &saction, NULL);
- sigaction( SIGHUP, &saction, NULL);
- sigaction( SIGCHLD, &saction, NULL);
+ sigaction(SIGINT, &saction, NULL);
+ sigaction(SIGQUIT, &saction, NULL);
+ sigaction(SIGTERM, &saction, NULL);
+ sigaction(SIGHUP, &saction, NULL);
+ sigaction(SIGCHLD, &saction, NULL);
/* einige Signale ignorieren */
saction.sa_handler = SIG_IGN;
- sigaction( SIGPIPE, &saction, NULL );
+ sigaction(SIGPIPE, &saction, NULL);
#else
/* kein sigaction() vorhanden */
/* Signal-Handler einhaengen */
- signal( SIGINT, Signal_Handler );
- signal( SIGQUIT, Signal_Handler );
- signal( SIGTERM, Signal_Handler );
- signal( SIGHUP, Signal_Handler );
- signal( SIGCHLD, Signal_Handler );
+ signal(SIGINT, Signal_Handler);
+ signal(SIGQUIT, Signal_Handler);
+ signal(SIGTERM, Signal_Handler);
+ signal(SIGHUP, Signal_Handler);
+ signal(SIGCHLD, Signal_Handler);
/* einige Signale ignorieren */
- signal( SIGPIPE, SIG_IGN );
+ signal(SIGPIPE, SIG_IGN);
#endif
} /* Initialize_Signal_Handler */
Show_Version( void )
{
puts( NGIRCd_Version );
- puts( "Copyright (c)2001-2005 by Alexander Barton (<alex@barton.de>)." );
- puts( "Homepage: <http://arthur.ath.cx/~alex/ngircd/>\n" );
+ puts( "Copyright (c)2001-2005 Alexander Barton (<alex@barton.de>) and Contributors." );
+ puts( "Homepage: <http://ngircd.barton.de/>\n" );
puts( "This is free software; see the source for copying conditions. There is NO" );
puts( "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." );
} /* Show_Version */