Fix the poll() backend to correctly respond to POLLHUP|POLLERR returns on a fd select...
commitdbcdf3e39c359241b743a9455ae695e14a30caa9
authorJeremy Allison <jra@samba.org>
Fri, 3 Jun 2011 19:31:11 +0000 (3 12:31 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 3 Jun 2011 20:53:52 +0000 (3 22:53 +0200)
tree7b94512cdafe516ea3bd7bee1b065cfc68c650ee
parent710444d1108252e9a9cc80e963d47b542cc6c2f5
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
lib/tevent/tevent_poll.c