s4-server: call the ldb_wrap_fork_hook() after a fork()
[ira/wip.git] / source4 / smbd / process_prefork.c
index 979a65482ececb4a2722c851769fb37e21926a4e..db5633b9f26aef55f293f04d71da5040c50c2234 100644 (file)
@@ -32,6 +32,7 @@
 #include "system/filesys.h"
 #include "cluster/cluster.h"
 #include "param/param.h"
+#include "lib/ldb_wrap.h"
 
 #ifdef HAVE_SETPROCTITLE
 #ifdef HAVE_SETPROCTITLE_H
@@ -60,6 +61,7 @@ static void prefork_reload_after_fork(void)
        if (tdb_reopen_all(1) == -1) {
                DEBUG(0,("prefork_reload_after_fork: tdb_reopen_all failed.\n"));
        }
+       ldb_wrap_fork_hook();
 
        /* Ensure that the forked children do not expose identical random streams */
        set_need_random_reseed();