Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
if (req == NULL) {
return NULL;
}
- tevent_thread_call_depth_start(req);
state->cli_state = cli_state;
state->ev = ev;
if (lp_winbind_debug_traceid()) {
winbind_debug_traceid_setup(global_event_context());
- tevent_thread_call_depth_activate(debug_call_depth_addr());
+ winbind_debug_call_depth_setup(debug_call_depth_addr());
+ tevent_thread_call_depth_set_callback(
+ debuglevel_get() > 1 ? winbind_call_flow : NULL,
+ NULL);
}
ok = initialize_password_db(true, global_event_context());
if (!ok) {
/* Reset traceid and deactivate call_depth tracking */
if (lp_winbind_debug_traceid()) {
debug_traceid_set(1);
- tevent_thread_call_depth_deactivate();
+ tevent_thread_call_depth_set_callback(NULL, NULL);
}
status = winbindd_reinit_after_fork(child, child->logfilename);