Fix the poll() backend to correctly respond to POLLHUP|POLLERR returns on a fd select...
commit9546457783e89514d5be5a7a168f19152ffa6a21
authorJeremy Allison <jra@samba.org>
Fri, 3 Jun 2011 19:31:11 +0000 (3 12:31 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 7 Jun 2011 18:04:16 +0000 (7 20:04 +0200)
treeb4b3630cfccba50a6cf6c82894c6966ea66aedff
parent4848637999bc2d1245936282d03c07610454c761
Fix the poll() backend to correctly respond to POLLHUP|POLLERR returns on a fd selected for TEVENT_FD_WRITE only.

Don't trigger the write handler and remove the POLLOUT flag for this fd. Report errors on TEVENT_FD_READ requests only.
Metze please check !

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Jun  3 22:53:52 CEST 2011 on sn-devel-104
(cherry picked from commit dbcdf3e39c359241b743a9455ae695e14a30caa9)
(cherry picked from commit 4da2f8a8c578568d1e9a4770166c46240fce6664)
lib/tevent/tevent_poll.c