about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2005-05-22 23:55:57 +0000
committerAlexander Barton <alex@barton.de>2005-05-22 23:55:57 +0000
commitcd0dc8627dca26918169b646873936ce30a61e55 (patch)
tree5d144894337431b7ca056eb78e4115c3b7a6c94a /src
parent44fdde761040e49d55c87581afac7ee75cafd9bc (diff)
downloadngircd-cd0dc8627dca26918169b646873936ce30a61e55.tar.gz
ngircd-cd0dc8627dca26918169b646873936ce30a61e55.zip
Don't exit server if closing of a socket fails; instead ignore it and
pray that this will be "the right thing" ...
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conn.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index d9d7d1db..f076d232 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -16,7 +16,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: conn.c,v 1.149 2005/04/23 14:28:44 fw Exp $";
+static char UNUSED id[] = "$Id: conn.c,v 1.150 2005/05/22 23:55:58 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -671,10 +671,8 @@ Conn_Close( CONN_ID Idx, char *LogMsg, char *FwdMsg, bool InformClient )
 	/* Shut down socket */
 	if( close( My_Connections[Idx].sock ) != 0 )
 	{
-		/* Oops, we can't close the socket!? This is fatal! */
-		Log( LOG_EMERG, "Error closing connection %d (socket %d) with %s:%d - %s!", Idx, My_Connections[Idx].sock, My_Connections[Idx].host, ntohs( My_Connections[Idx].addr.sin_port), strerror( errno ));
-		Log( LOG_ALERT, "%s exiting due to fatal errors!", PACKAGE_NAME );
-		exit( 1 );
+		/* Oops, we can't close the socket!? This is ... ugly! */
+		Log( LOG_CRIT, "Error closing connection %d (socket %d) with %s:%d - %s! (ignored)", Idx, My_Connections[Idx].sock, My_Connections[Idx].host, ntohs( My_Connections[Idx].addr.sin_port), strerror( errno ));
 	}
 
 	/* Mark socket as invalid: */