Fix ETIME handling for Solaris event ports.
commit2d7ac27b7821bcf56457e15e674550e9350fd275
authorNathan Huff <nhuff@acm.org>
Fri, 5 Feb 2016 20:35:07 +0000 (5 13:35 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 18 Apr 2016 10:58:29 +0000 (18 12:58 +0200)
tree9bb7854740912046d9e3241bc30b7d2ac74b6855
parent2fe44e7e761c54ecf6ddcaef226631e805de4bde
Fix ETIME handling for Solaris event ports.

It is possible for port_getn to return -1 with errno set to ETIME and
still return events. If those events aren't processed the association is
lost by samba since the kernel dissacociated them and samba never
processed them so never reassociated them with the event port. The
patch checks the nget return value in the case of ETIME and if it is non
0 it doesn't return and goes through the event processing loop.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11771

Signed-off-by: Nathan Huff <nhuff@acm.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Sun Feb  7 11:26:35 CET 2016 on sn-devel-144

(cherry picked from commit 4953b1f73f8ec9387516be1058434d71937e1447)
lib/tevent/tevent_port.c