tevent: fix the nesting logic
commit01a4ec433627fe36c9eef7a8f1a7f45b86eb8262
authorStefan Metzmacher <metze@samba.org>
Thu, 19 Mar 2009 13:31:43 +0000 (19 14:31 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 9 Sep 2009 10:27:13 +0000 (9 12:27 +0200)
tree30ff34edbd74aafabfe6520ae5fd7da5b714d912
parent6e968a6f12de83be431e6244c34bb3cecf52ee42
tevent: fix the nesting logic

Only tevent_loop_once and tevent_loop_until() should care
about the nesting level.

This fixes the samba3 printing code where we use tevent_loop_wait()
and don't allow nested events.

We still call the nesting hook for all levels, we need to decide
if we really want this...

metze
(cherry picked from commit 36e7045340bbc7d6567008bdd87c4cdf717835bd)
lib/tevent/tevent.c