s3:lib/events: Fix a bug in run_poll_events().
commit6a587c926b7fdcb934b916a29bdd04bd0ef606b9
authorStefan Metzmacher <metze@samba.org>
Mon, 8 Aug 2011 16:49:06 +0000 (8 18:49 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 9 Aug 2011 11:02:51 +0000 (9 13:02 +0200)
tree7fcb30835848f1c4a09d548ac15ec2cda892a7e9
parentcbd408df89ec51fb06fbfb935458eb8425639bed
s3:lib/events: Fix a bug in run_poll_events().

Ignore fd events without EVENT_FD_READ or EVENT_FD_WRITE also in
run_events_poll(). They are ignore when building the array
for the syscall in event_add_to_poll_args(), so we need to
ignore them run_events_poll() too.

metze

Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Aug  9 10:11:54 CEST 2011 on sn-devel-104
(cherry picked from commit 020032e114c0e966acf24f24e707942219d60cf3)

Fix bug #8358 (smbd exits with NT_STATUS_INTERNAL_ERROR in run_poll_events()).
source3/lib/events.c