version 1.29 | | version 1.30 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_loop_c = | | * static char *rcsid_loop_c = |
* "$Id: loop.c,v 1.29 2005/06/23 05:18:38 mwedel Exp $"; | | * "$Id: loop.c,v 1.30 2005/09/04 16:58:13 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
if (stat<0 && errno != EAGAIN && errno !=EWOULDBLOCK) { | | if (stat<0 && errno != EAGAIN && errno !=EWOULDBLOCK) { |
#endif | | #endif |
perror("Handle_Oldsocket got an error."); | | LOG(llevError, "Cannot read from socket: %s\n", strerror_local(errno)); |
ns->status = Ns_Dead; | | ns->status = Ns_Dead; |
return; | | return; |
} | | } |
| | |
&tmp_exceptions, &socket_info.timeout); | | &tmp_exceptions, &socket_info.timeout); |
| | |
if (pollret==-1) { | | if (pollret==-1) { |
perror("doeric_server: error on select"); | | LOG(llevError, "select failed: %s\n", strerror_local(errno)); |
LOG(llevError,"doeric_server: error on select\n"); | | |
return; | | return; |
} | | } |
| | |
| | |
} | | } |
init_sockets[newsocknum].fd=accept(init_sockets[0].fd, (struct sockaddr *)&addr, &addrlen); | | init_sockets[newsocknum].fd=accept(init_sockets[0].fd, (struct sockaddr *)&addr, &addrlen); |
if (init_sockets[newsocknum].fd==-1) { | | if (init_sockets[newsocknum].fd==-1) { |
perror("doeric_server: error on accept"); | | LOG(llevError, "accept failed: %s\n", strerror_local(errno)); |
LOG(llevError,"doeric_server: error on accept\n"); | | |
} | | } |
else { | | else { |
InitConnection(&init_sockets[newsocknum],ntohl(addr.sin_addr.s_addr)); | | InitConnection(&init_sockets[newsocknum],ntohl(addr.sin_addr.s_addr)); |