about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2007-02-21 11:06:06 +0000
committerFlorian Westphal <fw@strlen.de>2007-02-21 11:06:06 +0000
commit99eab1e21645483d0611e6b1fbc83c95157af16a (patch)
tree2be6214839aa03009b276fd232f31d53f3a3d130 /src
parentc93d089736bdcfac111199573d249e21b9d71186 (diff)
downloadngircd-99eab1e21645483d0611e6b1fbc83c95157af16a.tar.gz
ngircd-99eab1e21645483d0611e6b1fbc83c95157af16a.zip
if we can't bind a socket we now Log the port number, too.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index 4a55bd2a..6932af0f 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -17,7 +17,7 @@
 #include "portab.h"
 #include "io.h"
 
-static char UNUSED id[] = "$Id: conn.c,v 1.202 2007/01/23 16:07:19 alex Exp $";
+static char UNUSED id[] = "$Id: conn.c,v 1.203 2007/02/21 11:06:06 fw Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -376,7 +376,7 @@ NewListener( const UINT16 Port )
 	if( ! Init_Socket( sock )) return -1;
 
 	if (bind(sock, (struct sockaddr *)&addr, (socklen_t)sizeof(addr)) != 0) {
-		Log( LOG_CRIT, "Can't bind socket: %s!", strerror( errno ));
+		Log( LOG_CRIT, "Can't bind socket (port %d) : %s!", Port, strerror( errno ));
 		close( sock );
 		return -1;
 	}