Signed-off-by: Jens Axboe <axboe@kernel.dk>
Client_connected = 1,
Client_started = 2,
Client_stopped = 3,
Client_connected = 1,
Client_started = 2,
Client_stopped = 3,
};
static FLIST_HEAD(client_list);
};
static FLIST_HEAD(client_list);
- ret = poll(pfds, nr_clients, 100);
- if (ret < 0) {
- if (errno == EINTR)
+ do {
+ ret = poll(pfds, nr_clients, 100);
+ if (ret < 0) {
+ if (errno == EINTR)
+ continue;
+ log_err("fio: poll clients: %s\n", strerror(errno));
+ break;
+ } else if (!ret)
- log_err("fio: poll clients: %s\n", strerror(errno));
- break;
- } else if (!ret)
- continue;
for (i = 0; i < nr_clients; i++) {
if (!(pfds[i].revents & POLLIN))
for (i = 0; i < nr_clients; i++) {
if (!(pfds[i].revents & POLLIN))