diff options
Diffstat (limited to 'source3/nmbd/nmbd.c')
-rw-r--r-- | source3/nmbd/nmbd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index d13607b1f54..dd42675cc60 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -779,6 +779,7 @@ static bool open_sockets(bool isdaemon, int port) { NULL } }; TALLOC_CTX *frame = talloc_stackframe(); /* Setup tos. */ + NTSTATUS status; load_case_tables(); @@ -923,8 +924,11 @@ static bool open_sockets(bool isdaemon, int port) pidfile_create("nmbd"); - if (!NT_STATUS_IS_OK(reinit_after_fork(nmbd_messaging_context(), - nmbd_event_context(), false))) { + status = reinit_after_fork(nmbd_messaging_context(), + nmbd_event_context(), + procid_self(), false); + + if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("reinit_after_fork() failed\n")); exit(1); } |