]> arthur.barton.de Git - ngircd-alex.git/commitdiff
if we can't bind a socket we now Log the port number, too.
authorFlorian Westphal <fw@strlen.de>
Wed, 21 Feb 2007 11:06:06 +0000 (11:06 +0000)
committerFlorian Westphal <fw@strlen.de>
Wed, 21 Feb 2007 11:06:06 +0000 (11:06 +0000)
src/ngircd/conn.c

index 4a55bd2a0ffbec7b3af5c62663623bbbf731c8d6..6932af0fc559acd1126978a61b91efbf6a12dfcd 100644 (file)
@@ -17,7 +17,7 @@
 #include "portab.h"
 #include "io.h"
 
 #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>
 
 #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) {
        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;
        }
                close( sock );
                return -1;
        }