FD_SET(hd->pipe[0], &rfds);
FD_ZERO(&efds);
FD_SET(hd->pipe[0], &efds);
- ret = select(1, &rfds, NULL, &efds, &timeout);
- if (ret < 0)
+ if (select(1, &rfds, NULL, &efds, &timeout) < 0) {
log_err("fio: select() call in helper thread failed: %s",
strerror(errno));
+ ret = 1;
+ }
if (read_from_pipe(hd->pipe[0], &action, sizeof(action)) <
0)
action = 0;