ready = select(max_fds, &FDS, NULL, NULL, p_tout);
if (ready == -1) {
switch (errno) {
- case EINTR: /* a signal we don't care about occured. We don't care */
+ case EINTR: /* a signal we don't care about occured. we don't care */
+ /* if we cared, we would have set an handler */
continue;
case EINVAL: /* invalid value */
RAISE3(system_error,"invalid select: nb fds: %d, timeout: %d.%d",
case ENOMEM:
RAISE_MALLOC;
default:
- RAISE2(system_error,"Error during select: %s (%d)",strerror(errno),errno);
+ RAISE2(system_error,"Error during select: %s (%d)",
+ strerror(errno),errno);
}
RAISE_IMPOSSIBLE;
} else if (ready == 0) {
*/
struct s_gras_socket {
- gras_trp_plugin_t *plugin;
+ gras_trp_plugin_t *plugin;
- int incoming; /* true if incoming (server) sock, false if client sock */
- int accepting; /* true if master incoming sock in tcp */
+ int incoming; /* true if incoming (server) sock, false if client sock */
+ int accepting; /* true if master incoming sock in tcp */
- int sd;
- int port; /* port on this side */
- int peer_port; /* port on the other side */
- char *peer_name; /* hostname of the other side */
+ int sd;
+ int port; /* port on this side */
+ int peer_port; /* port on the other side */
+ char *peer_name; /* hostname of the other side */
- void *specific; /* plugin specific data */
+ void *specific; /* plugin specific data */
};