diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-02-18 10:16:48 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-02-19 23:47:55 +0100 |
commit | 804b18f38eabf07f2f01d44ea534fa9805443213 (patch) | |
tree | f13f091891cb32227c7510fe0c69a1a2aaf9382b /source3/lib | |
parent | 935a40f4f20048204fb7baf2f208e7e44f2485e7 (diff) | |
download | samba-804b18f38eabf07f2f01d44ea534fa9805443213.tar.gz samba-804b18f38eabf07f2f01d44ea534fa9805443213.tar.xz samba-804b18f38eabf07f2f01d44ea534fa9805443213.zip |
s3:lib/events: s/EVENT_FD/TEVENT_FD
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/events.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/lib/events.c b/source3/lib/events.c index cafe598ca0..011fcdc2e1 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); |