To include in revert-epoll-support-for-disabling-items-and-a-self-test-app.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
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;
}
}