Update of /cvsroot/srvx/services/src
In directory usw-pr-cvs1:/tmp/cvs-serv11237/src
Modified Files:
proto-common.c
Log Message:
report errno when ioset connect() fails
Index: proto-common.c
===================================================================
RCS file: /cvsroot/srvx/services/src/proto-common.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** proto-common.c 28 Oct 2002 01:54:53 -0000 1.21
--- proto-common.c 31 Oct 2002 03:46:20 -0000 1.22
***************
*** 127,130 ****
--- 127,131 ----
socket_io_fd = ioset_connect((struct sockaddr*)cManager.uplink->bind_addr, sizeof(struct sockaddr), addr, port, 1, NULL);
if (!socket_io_fd) {
+ log(MAIN_LOG, LOG_ERROR, "Connection to uplink failed: %s (%d)\n", strerror(errno), errno);
target->state = DISCONNECTED;
target->tries++;
|