]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/ngircd.c
- Konstanten sortiert, neue Konstante RPL_VERSION und RPL_VERSION_MSG.
[ngircd-alex.git] / src / ngircd / ngircd.c
index a7f6b2d3b46cae53d587ca74e966708f5c74d255..3c30391ab81fd4b3d03cdcb345e5439da107b1a6 100644 (file)
@@ -9,11 +9,17 @@
  * 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.20 2002/01/18 11:12:11 alex Exp $
+ * $Id: ngircd.c,v 1.22 2002/01/22 17:15:39 alex Exp $
  *
  * ngircd.c: Hier beginnt alles ;-)
  *
  * $Log: ngircd.c,v $
+ * Revision 1.22  2002/01/22 17:15:39  alex
+ * - die Fehlermeldung "interrupted system call" sollte nicht mehr auftreten.
+ *
+ * Revision 1.21  2002/01/21 00:02:11  alex
+ * - Hilfetexte korrigiert und ergaenzt (Sniffer).
+ *
  * Revision 1.20  2002/01/18 11:12:11  alex
  * - der Sniffer wird nun nur noch aktiviert, wenn auf Kommandozeile angegeben.
  *
@@ -328,9 +334,10 @@ LOCAL VOID Initialize_Signal_Handler( VOID )
 
        /* Signal-Struktur initialisieren */
        memset( &saction, 0, sizeof( saction ));
+       saction.sa_handler = Signal_Handler;
+       saction.sa_flags = SA_RESTART;
 
        /* Signal-Handler einhaengen */
-       saction.sa_handler = Signal_Handler;
        sigaction( SIGINT, &saction, NULL );
        sigaction( SIGQUIT, &saction, NULL );
        sigaction( SIGTERM, &saction, NULL);
@@ -406,8 +413,11 @@ LOCAL VOID Show_Help( VOID )
        puts( "  -d, --debug       log extra debug messages" );
 #endif
         puts( "  -n, --nodaemon    don't fork and don't detatch from controlling terminal" );
-       puts( "      --version     display this help and exit" );
-       puts( "      --help        output version information and exit" );
+#ifdef SNIFFER
+       puts( "  -s, --sniffer     enable network sniffer and display all IRC traffic" );
+#endif
+       puts( "      --version     output version information and exit" );
+       puts( "      --help        display this help and exit" );
 } /* Show_Help */