summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-09-19 05:43:15 +0000
committerAndrew Tridgell <tridge@samba.org>2001-09-19 05:43:15 +0000
commit2bc9ef38466826ab43b747def4cf3344187ebe1f (patch)
tree56c30364dd2cbccc7f59622e5463254cf4c676e4 /source3/smbd
parentd9c1da5b0cfc1dad173b4fc8b48d74c8007e8111 (diff)
downloadsamba-2bc9ef38466826ab43b747def4cf3344187ebe1f.tar.gz
samba-2bc9ef38466826ab43b747def4cf3344187ebe1f.tar.bz2
samba-2bc9ef38466826ab43b747def4cf3344187ebe1f.zip
added a hook to reopen all tdb's after the server fork
this prevents the fd seek pointer problem (This used to be commit f49518e497deeb46292456c3650769d50ec2a955)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 1dfff6cafa..27fd8e3015 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -309,6 +309,9 @@ max can be %d\n",
done correctly in the process. */
reset_globals_after_fork();
+ /* tdb needs special fork handling */
+ tdb_reopen_all();
+
return True;
}
/* The parent doesn't need this socket */