Avoid valgrind errors
authorVolker Lendecke <vl@samba.org>
Wed, 28 Jan 2009 09:35:35 +0000 (10:35 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 28 Jan 2009 15:20:58 +0000 (16:20 +0100)
commit910cbc5d6e932fa8ed0066d407a40195b6629a37
tree3e9c43eb3bb2a9a550edb254a365676c4f0b4695
parent3e9c89e81b2915ba1a2aac7b8d72a780f7f9b80e
Avoid valgrind errors

In event handlers, we might destroy other events that are pending in the lists.
We can only run one event safely per select call.

Yes, I've seen these valgrind errors :-)

Jeremy, with ccdd921e61 you had checked in the change to run multiple events.
Do you remember why it was necessary and could not be solved in a different
way?

Volker
source/lib/events.c