Browse Source

Correction: suppression du timeout.

master
Stéphane 6 years ago
parent
commit
518dcf4df6
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      interface.c

+ 3
- 6
interface.c View File

@@ -266,17 +266,14 @@ int read_message(struct list_subscription_t *list_p, struct message_t *message_p
}

{
struct timeval timeout;
memset(&timeout, 0, sizeof(struct timeval));
timeout.tv_sec = 2; /* temps en secondes */
//nb_ready_fd = select(FD_SETSIZE, &fdfs, NULL, NULL, &timeout);
struct timeval timeout = {0};
nb_ready_fd = select(FD_SETSIZE, &fdfs, NULL, NULL, &timeout);
}
#if 0

if(nb_ready_fd < 0) /* erreur */
return_error(select);
else if(nb_ready_fd == 0) /* timeout écoulé */
return 0;
#endif

/* les sockets pour les commandes */
if(list_p->fd_command_client >= 0 && FD_ISSET(list_p->fd_command_client, &fdfs)) {

Loading…
Cancel
Save