From: Andrew Morton Date: Thu, 25 Oct 2012 01:13:59 +0000 (+1100) Subject: revert-tools-testing-selftests-epoll-test_epollc-fix-build X-Git-Tag: next-20121025~2^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=464ec072f2f760a2d5b251bf6b49d15edf8691ae;p=karo-tx-linux.git revert-tools-testing-selftests-epoll-test_epollc-fix-build To include in revert-epoll-support-for-disabling-items-and-a-self-test-app. Signed-off-by: Andrew Morton --- diff --git a/tools/testing/selftests/epoll/test_epoll.c b/tools/testing/selftests/epoll/test_epoll.c index f7525392ce84..e0fcff1e8331 100644 --- a/tools/testing/selftests/epoll/test_epoll.c +++ b/tools/testing/selftests/epoll/test_epoll.c @@ -162,14 +162,14 @@ void *write_thread_function(void *function_data) int index; struct write_thread_data *thread_data = (struct write_thread_data *)function_data; - while (!thread_data->stop) + while (!write_thread_data->stop) for (index = 0; !thread_data->stop && (index < thread_data->n_fds); ++index) if ((write(thread_data->fds[index], &data, 1) < 1) && (errno != EAGAIN) && (errno != EWOULDBLOCK)) { - thread_data->status = errno; + write_thread_data->status = errno; return; } }