Done only for the parent process. Works with 'smbcontrol reload-config'
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Jul 19 09:00:50 UTC 2023 on atb-devel-224
winbindd_reload_services_file((const char *)private_data);
+ /* Set tevent_thread_call_depth_set_callback according to debug level */
+ if (lp_winbind_debug_traceid() && debuglevel_get() > 1) {
+ tevent_thread_call_depth_set_callback(winbind_call_flow, NULL);
+ } else {
+ tevent_thread_call_depth_set_callback(NULL, NULL);
+ }
+
forall_children(winbind_msg_relay_fn, &state);
}