X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=helper_thread.c;h=a2fb7c29a0565884e96e9546a6967ee2de889181;hb=291a2d8569b0fb51257a18faf17867d022660499;hp=ad1a08f32b6a773e7b4fe83bbc8b1d02bb5e9727;hpb=3da71e37115134823528fc03d946b05a785f088f;p=fio.git diff --git a/helper_thread.c b/helper_thread.c index ad1a08f3..a2fb7c29 100644 --- a/helper_thread.c +++ b/helper_thread.c @@ -194,10 +194,11 @@ static void *helper_thread_main(void *data) 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;