diff options
author | Volker Lendecke <vl@samba.org> | 2008-04-23 17:13:50 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-04-23 22:18:26 +0200 |
commit | 0c4093a234dfaca6d363a6e1358f2fbf421dcd3c (patch) | |
tree | bb66bc62760c3a17a2b39aecf284855bde5f8288 /source3/nmbd/nmbd.c | |
parent | 5c3b9a38f51ce69a3e15d8799809a117acb85a72 (diff) | |
download | samba-0c4093a234dfaca6d363a6e1358f2fbf421dcd3c.tar.gz |
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 :-)
(This used to be commit 4f4781c6d17fe2db34dd5945fec52a7685448aec)
Diffstat (limited to 'source3/nmbd/nmbd.c')
-rw-r--r-- | source3/nmbd/nmbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index 9396219ea72..af4acc84d07 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -912,7 +912,7 @@ static bool open_sockets(bool isdaemon, int port) pidfile_create("nmbd"); - if (!reinit_after_fork(nmbd_messaging_context())) { + if (!reinit_after_fork(nmbd_messaging_context(), false)) { DEBUG(0,("reinit_after_fork() failed\n")); exit(1); } |