X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=helper_thread.c;h=7874985504be2aa6c4c82c7683320c39409d927d;hb=d3851529fc160bdf8cfa266d2e4b4f87bb76cef9;hp=ad2e83b4e18f8812642683a8358d8a8ccd71d9b1;hpb=c31092b8ac06d845f3022339f55f482308e02b6e;p=fio.git diff --git a/helper_thread.c b/helper_thread.c index ad2e83b4..78749855 100644 --- 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); - 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;