tevent: Only call handlers that ask for events
authorVolker Lendecke <vl@samba.org>
Wed, 6 Oct 2010 16:47:08 +0000 (18:47 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 6 Oct 2010 23:40:24 +0000 (23:40 +0000)
commit1c9b85667070ee3292862d007f03b33b10713edd
tree955abe0a9ba462f920bf4cc3083d5a3b06dc04e6
parent0cec0f0912bc0cc15715fd68483f28e5b68e4439
tevent: Only call handlers that ask for events

The s3 libsmbclient puts two different handlers on a single fd for readability
and writability. With select this works fine, however without this patch we
unconditionally call the write handler even if the socket is only readable. We
should have called the read handler instead.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Oct  6 23:40:24 UTC 2010 on sn-devel-104
lib/tevent/tevent_standard.c