do {
ret = poll(&pfd, 1, 100);
if (ret < 0) {
+ if (errno == EINTR)
+ break;
log_err("fio: poll: %s\n", strerror(errno));
break;
} else if (!ret)
server_fd = sk;
- printf("handle\n");
-
exitval = handle_connection(sk);
- printf("out, exit %d\n", exitval);
-
server_fd = -1;
close(sk);
struct cmd_ts_pdu p;
int i, j;
+ memset(&p, 0, sizeof(p));
+
strcpy(p.ts.name, ts->name);
strcpy(p.ts.verror, ts->verror);
strcpy(p.ts.description, ts->description);
for (i = 0; i < 3; i++) {
p.ts.total_io_u[i] = cpu_to_le64(ts->total_io_u[i]);
- p.ts.short_io_u[i] = cpu_to_le64(ts->total_io_u[i]);
+ p.ts.short_io_u[i] = cpu_to_le64(ts->short_io_u[i]);
}
- p.ts.total_submit = cpu_to_le64(ts->total_submit);
+ p.ts.total_submit = cpu_to_le64(ts->total_submit);
p.ts.total_complete = cpu_to_le64(ts->total_complete);
for (i = 0; i < 2; i++) {