Avoid valgrind errors
authorVolker Lendecke <vl@samba.org>
Tue, 27 Jan 2009 18:45:51 +0000 (19:45 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 28 Jan 2009 15:18:16 +0000 (16:18 +0100)
commit4c7296cc0c0770ea547b67d668d5b42ab00a27da
tree0a3dd81890d71c83b88432d250727be355cff77d
parentc001b456cf0c9fdfd90a5239e3b86168d0fbb5aa
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
source3/lib/events.c