projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of https://github.com/bvanassche/fio
[fio.git]
/
helper_thread.c
diff --git
a/helper_thread.c
b/helper_thread.c
index ad2e83b4e18f8812642683a8358d8a8ccd71d9b1..7874985504be2aa6c4c82c7683320c39409d927d 100644
(file)
--- a/
helper_thread.c
+++ b/
helper_thread.c
@@
-176,7
+176,10
@@
static void *helper_thread_main(void *data)
FD_SET(hd->pipe[0], &rfds);
FD_ZERO(&efds);
FD_SET(hd->pipe[0], &efds);
FD_SET(hd->pipe[0], &rfds);
FD_ZERO(&efds);
FD_SET(hd->pipe[0], &efds);
- select(1, &rfds, NULL, &efds, &timeout);
+ ret = select(1, &rfds, NULL, &efds, &timeout);
+ if (ret < 0)
+ log_err("fio: select() call in helper thread failed: %s",
+ strerror(errno));
if (read_from_pipe(hd->pipe[0], &action, sizeof(action)) <
0)
action = 0;
if (read_from_pipe(hd->pipe[0], &action, sizeof(action)) <
0)
action = 0;