]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/ngircd.c
Minor whitespace fixes.
[ngircd-alex.git] / src / ngircd / ngircd.c
index 20a35dbb0c399539bacb663b609ce42312ec34a4..57d1f76fdfcb6cfad9ffdc0a595c7290b9ec93c9 100644 (file)
@@ -12,7 +12,7 @@
 
 #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
@@ -262,8 +262,10 @@ main( int argc, const char *argv[] )
                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);
                }
 
@@ -480,27 +482,27 @@ Initialize_Signal_Handler( void )
 #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 */
 
@@ -546,8 +548,8 @@ static void
 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 */