diff options
Diffstat (limited to 'tools/testing/selftests/epoll/test_epoll.c')
-rw-r--r-- | tools/testing/selftests/epoll/test_epoll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/epoll/test_epoll.c b/tools/testing/selftests/epoll/test_epoll.c index e0fcff1e8331..f7525392ce84 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) | |||
162 | int index; | 162 | int index; |
163 | struct write_thread_data *thread_data = | 163 | struct write_thread_data *thread_data = |
164 | (struct write_thread_data *)function_data; | 164 | (struct write_thread_data *)function_data; |
165 | while (!write_thread_data->stop) | 165 | while (!thread_data->stop) |
166 | for (index = 0; | 166 | for (index = 0; |
167 | !thread_data->stop && (index < thread_data->n_fds); | 167 | !thread_data->stop && (index < thread_data->n_fds); |
168 | ++index) | 168 | ++index) |
169 | if ((write(thread_data->fds[index], &data, 1) < 1) && | 169 | if ((write(thread_data->fds[index], &data, 1) < 1) && |
170 | (errno != EAGAIN) && | 170 | (errno != EAGAIN) && |
171 | (errno != EWOULDBLOCK)) { | 171 | (errno != EWOULDBLOCK)) { |
172 | write_thread_data->status = errno; | 172 | thread_data->status = errno; |
173 | return; | 173 | return; |
174 | } | 174 | } |
175 | } | 175 | } |