Avoid valgrind errors
commita46045e107193d79c0aa776cb5aed1131d2a74cc
authorVolker Lendecke <vl@samba.org>
Wed, 28 Jan 2009 09:35:35 +0000 (28 10:35 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 16 Feb 2009 08:56:47 +0000 (16 09:56 +0100)
treecd9e4a8e752e78e5de340f6dd550746eb2aa8035
parente53cee41f6fc01292353b12865f840e98d078907
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
(cherry picked from commit 910cbc5d6e932fa8ed0066d407a40195b6629a37)
source/lib/events.c