From 804b18f38eabf07f2f01d44ea534fa9805443213 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 18 Feb 2013 10:16:48 +0100 Subject: [PATCH] s3:lib/events: s/EVENT_FD/TEVENT_FD Signed-off-by: Stefan Metzmacher Reviewed-by: Michael Adam --- source3/lib/events.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source3/lib/events.c b/source3/lib/events.c index cafe598ca09..011fcdc2e16 100644 --- a/source3/lib/events.c +++ b/source3/lib/events.c @@ -258,23 +258,23 @@ bool run_events_poll(struct tevent_context *ev, int pollrtn, } if (pfd->revents & (POLLHUP|POLLERR)) { - /* If we only wait for EVENT_FD_WRITE, we + /* If we only wait for TEVENT_FD_WRITE, we should not tell the event handler about it, and remove the writable flag, as we only report errors when waiting for read events to match the select behavior. */ - if (!(fde->flags & EVENT_FD_READ)) { - EVENT_FD_NOT_WRITEABLE(fde); + if (!(fde->flags & TEVENT_FD_READ)) { + TEVENT_FD_NOT_WRITEABLE(fde); continue; } - flags |= EVENT_FD_READ; + flags |= TEVENT_FD_READ; } if (pfd->revents & POLLIN) { - flags |= EVENT_FD_READ; + flags |= TEVENT_FD_READ; } if (pfd->revents & POLLOUT) { - flags |= EVENT_FD_WRITE; + flags |= TEVENT_FD_WRITE; } if (flags & fde->flags) { DLIST_DEMOTE(ev->fd_events, fde, struct tevent_fd); -- 2.11.4.GIT