s3:winbind: Deactivate call depth tracking in child winbindd
authorPavel Filipenský <pfilipen@redhat.com>
Fri, 17 Jun 2022 16:03:35 +0000 (18:03 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 26 Jan 2023 14:10:36 +0000 (14:10 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15287

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/winbindd/winbindd_dual.c

index 8cb59b2f7522b76765c1bfa243a3c32e3958faf1..d9c32b10072ab74004fdd90b717795952a0462b0 100644 (file)
@@ -1742,6 +1742,12 @@ static bool fork_domain_child(struct winbindd_child *child)
        state.cli.sock = fdpair[0];
        close(fdpair[1]);
 
+       /* Reset traceid and deactivate call_depth tracking */
+       if (lp_winbind_debug_traceid()) {
+               debug_traceid_set(1);
+               tevent_thread_call_depth_deactivate();
+       }
+
        status = winbindd_reinit_after_fork(child, child->logfilename);
 
        /* setup callbacks again, one of them is removed in reinit_after_fork */