Signed-off-by: Jens Axboe <axboe@kernel.dk>
client->state = Client_stopped;
client->error = le32_to_cpu(pdu->error);
client->state = Client_stopped;
client->error = le32_to_cpu(pdu->error);
+
+ if (client->error)
+ log_info("client <%s>: exited with error %d\n", client->hostname, client->error);
}
static int handle_client(struct fio_client *client)
}
static int handle_client(struct fio_client *client)
struct fio_client *client;
struct flist_head *entry;
struct pollfd *pfds;
struct fio_client *client;
struct flist_head *entry;
struct pollfd *pfds;
+ int i, ret = 0, retval = 0;
gettimeofday(&eta_tv, NULL);
gettimeofday(&eta_tv, NULL);
log_info("client: host=%s disconnected\n",
client->hostname);
remove_client(client);
log_info("client: host=%s disconnected\n",
client->hostname);
remove_client(client);
+ if (client->error)
+ retval = 1;