improved debugging of closed sockets

This commit is contained in:
gardners 2012-05-05 19:28:31 +09:30
parent 9ce7058cd0
commit 04599091d1

View File

@ -237,8 +237,8 @@ int monitor_poll()
break;
default:
/* all other errors; close socket */
WHYF("Tearing down monitor client #%d due to errno=%d",
i,errno);
WHYF("Tearing down monitor client #%d due to errno=%d (%s)",
i,errno,strerror(errno));
close(c->socket);
if (i==monitor_socket_count-1) {
monitor_socket_count--;