about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2001-12-24 01:34:38 +0000
committerAlexander Barton <alex@barton.de>2001-12-24 01:34:38 +0000
commiteb952e35ccf28aa4d60a944d5cb179025624fc46 (patch)
tree66acb98a7240b4071c761ca6f0468052cc4dd94c /src
parent9aa241f0e69acb83586666939331b8438fb5eac0 (diff)
downloadngircd-eb952e35ccf28aa4d60a944d5cb179025624fc46.tar.gz
ngircd-eb952e35ccf28aa4d60a944d5cb179025624fc46.zip
- Signal-Handler aufgeraeumt; u.a. SIGPIPE wird nun korrekt ignoriert.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/ngircd.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/ngircd/ngircd.c b/src/ngircd/ngircd.c
index 8cc3950c..73d4ca99 100644
--- a/src/ngircd/ngircd.c
+++ b/src/ngircd/ngircd.c
@@ -9,11 +9,14 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: ngircd.c,v 1.9 2001/12/21 22:24:50 alex Exp $
+ * $Id: ngircd.c,v 1.10 2001/12/24 01:34:38 alex Exp $
  *
  * ngircd.c: Hier beginnt alles ;-)
  *
  * $Log: ngircd.c,v $
+ * Revision 1.10  2001/12/24 01:34:38  alex
+ * - Signal-Handler aufgeraeumt; u.a. SIGPIPE wird nun korrekt ignoriert.
+ *
  * Revision 1.9  2001/12/21 22:24:50  alex
  * - neues Modul "parse" wird initialisiert und abgemeldet.
  *
@@ -125,16 +128,16 @@ LOCAL VOID Initialize_Signal_Handler( VOID )
 
 	/* Signal-Struktur initialisieren */
 	memset( &saction, 0, sizeof( saction ));
-	saction.sa_handler = Signal_Handler;
 
 	/* Signal-Handler einhaengen */
-	sigaction( SIGALRM, &saction, NULL );
-	sigaction( SIGHUP, &saction, NULL);
+	saction.sa_handler = Signal_Handler;
 	sigaction( SIGINT, &saction, NULL );
 	sigaction( SIGQUIT, &saction, NULL );
 	sigaction( SIGTERM, &saction, NULL);
-	sigaction( SIGUSR1, &saction, NULL);
-	sigaction( SIGUSR2, &saction, NULL);
+
+	/* einige Signale ignorieren */
+	saction.sa_handler = SIG_IGN;
+	sigaction( SIGPIPE, &saction, NULL );
 } /* Initialize_Signal_Handler */