diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-28 18:37:18 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-28 18:37:18 +0000 |
commit | 243e510185ed16e01b347a1d1f35e08592ec5b4d (patch) | |
tree | 8371987524135d7cdb8667cf6d80a4cfd2ad4c4e | |
parent | e9001885478b51dad173ddc2f93170db2591a8be (diff) |
Extra error output when fails to bind a port
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3382 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/inspircd_io.cpp | 4 | ||||
-rwxr-xr-x | src/svn-rev.sh | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 10eeca525..60673d203 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -1238,12 +1238,12 @@ int BindPorts() { if ((openSockfd[BoundPortCount] = OpenTCPSocket()) == ERROR) { - log(DEBUG,"InspIRCd: startup: bad fd %lu",(unsigned long)openSockfd[BoundPortCount]); + log(DEBUG,"InspIRCd: startup: bad fd %lu binding port [%s:%d]",(unsigned long)openSockfd[BoundPortCount],Config->addrs[count],(unsigned long)Config->ports[count]); return(ERROR); } if (BindSocket(openSockfd[BoundPortCount],client,server,Config->ports[count],Config->addrs[count]) == ERROR) { - log(DEFAULT,"InspIRCd: startup: failed to bind port %lu",(unsigned long)Config->ports[count]); + log(DEFAULT,"InspIRCd: startup: failed to bind port [%s:%lu]: %s",Config->addrs[count],(unsigned long)Config->ports[count],strerror(errno)); } else /* well we at least bound to one socket so we'll continue */ { diff --git a/src/svn-rev.sh b/src/svn-rev.sh index 5ad1ff158..4024150c1 100755 --- a/src/svn-rev.sh +++ b/src/svn-rev.sh @@ -1 +1 @@ -echo 3375 +echo 3381 |