summaryrefslogtreecommitdiffstats
path: root/source/winbindd/winbindd_dual.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-04-23 17:13:50 +0200
committerVolker Lendecke <vl@samba.org>2008-04-23 22:18:26 +0200
commit4f4781c6d17fe2db34dd5945fec52a7685448aec (patch)
tree33138abd4fea00c187987d3d47c24443d19f811a /source/winbindd/winbindd_dual.c
parentf8c364da94fac96450116be980e38ddddd3f304a (diff)
downloadsamba-4f4781c6d17fe2db34dd5945fec52a7685448aec.tar.gz
samba-4f4781c6d17fe2db34dd5945fec52a7685448aec.tar.xz
samba-4f4781c6d17fe2db34dd5945fec52a7685448aec.zip
Fix CLEAR_IF_FIRST handling of messages.tdb
We now open messages.tdb even before we do the become_daemon. become_daemon() involves a fork and an immediate exit of the parent, thus the parent_is_longlived argument must be set to false in this case. The parent is not really long lived :-)
Diffstat (limited to 'source/winbindd/winbindd_dual.c')
-rw-r--r--source/winbindd/winbindd_dual.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/winbindd/winbindd_dual.c b/source/winbindd/winbindd_dual.c
index 77fbe3c0ed4..14ba38cef32 100644
--- a/source/winbindd/winbindd_dual.c
+++ b/source/winbindd/winbindd_dual.c
@@ -1005,7 +1005,7 @@ static bool fork_domain_child(struct winbindd_child *child)
state.sock = fdpair[0];
close(fdpair[1]);
- if (!reinit_after_fork(winbind_messaging_context())) {
+ if (!reinit_after_fork(winbind_messaging_context(), true)) {
DEBUG(0,("reinit_after_fork() failed\n"));
_exit(0);
}