From: Jouni Malinen Date: Wed, 4 Jul 2012 18:36:38 +0000 (+0300) Subject: eloop: Fix EVENT_TYPE_WRITE with poll()-based eloop X-Git-Tag: hostap_2_0~544 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4be921ac605a6dd41f7bb36508702bbd80c3ab67;p=thirdparty%2Fhostap.git eloop: Fix EVENT_TYPE_WRITE with poll()-based eloop This needs to use POLLOUT instead of POLLIN to get the correct event. Signed-hostap: Jouni Malinen --- diff --git a/src/utils/eloop.c b/src/utils/eloop.c index b50ea92fc..bb3240115 100644 --- a/src/utils/eloop.c +++ b/src/utils/eloop.c @@ -278,7 +278,7 @@ static int eloop_sock_table_set_fds(struct eloop_sock_table *readers, pollfds_map[fd] = pfd; nxt++; } - pfd->events |= POLLIN; + pfd->events |= POLLOUT; } }