messaging: Act on messages within the right context
authorVolker Lendecke <vl@samba.org>
Sat, 24 Sep 2016 02:35:10 +0000 (19:35 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 4 Oct 2016 22:06:23 +0000 (00:06 +0200)
commit6d3c064f1a5d4471b5c68abf40ce21f71a55d564
tree58b0b6be6105f88cc816a66dadeeae87ea4c0c6b
parent82dd3562a5edc43e81a2ac897a329d6b06b097ad
messaging: Act on messages within the right context

Only look at "classic" messaging_register handlers in the main event
context loop

If we're sitting in a nested event context, only act upon the
messaging_filtered_read ones that are registered in the nested context.

Postpone everything else via an immediate to the main tevent context

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/messages.c