s4:process_prefork: create new messaging context for the master process
authorJule Anger <janger@samba.org>
Wed, 1 Mar 2023 10:02:00 +0000 (10:02 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 25 Jul 2023 20:04:29 +0000 (20:04 +0000)
commit1472e4c9dbf5eb98f7074d17bf4e3dabfec14fd0
tree3b9c68f4f2b1c7c284ac1321a9e6c17549b4e3f7
parent3af6ad6eea7b35c0149490578b508252d3cd6514
s4:process_prefork: create new messaging context for the master process

In order to allow the before_loop() hook to register messages or event
handlers, we need to fix up task->event_ctx and create a new
task->msg_ctx. It also means the struct task_server pointer
changes in the master before_loop() hook.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Jule Anger <janger@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/samba/process_prefork.c