Fix the poll() backend to correctly respond to POLLHUP|POLLERR returns on a fd select...
commit4da2f8a8c578568d1e9a4770166c46240fce6664
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 07:10:03 +0000 (7 09:10 +0200)
tree55b613a9d8cb69ae9ea85f2598b0342ca4e13d49
parentdf4a86ebc1e53cc9af24a51cefa6766b88f12e86
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)
lib/tevent/tevent_poll.c