tevent: Only call handlers that ask for events
commit49455358a2c8ea73c6b6b5b5433e3322ccac43c9
authorVolker Lendecke <vl@samba.org>
Wed, 6 Oct 2010 16:47:08 +0000 (6 18:47 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 6 Oct 2010 23:45:58 +0000 (6 16:45 -0700)
tree94f66498f7daf4a9abde1568f60339f770418877
parentbca6ebb65dfac92534756338952005d1ff98eafd
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
(cherry picked from commit 1c9b85667070ee3292862d007f03b33b10713edd)
lib/tevent/tevent_standard.c