summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/server.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 3ad2aa5b0f..97a05686c3 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -200,6 +200,9 @@ max can be %d\n",
/* Free up temporary memory from the main smbd. */
lp_talloc_free();
+ /* Ensure we respond to PING and DEBUG messages from the main smbd. */
+ message_dispatch();
+
memcpy((char *)&lfds, (char *)&listen_set,
sizeof(listen_set));
@@ -717,6 +720,11 @@ static void usage(char *pname)
exit(1);
}
+ /* Setup the main smbd so that we can get messages. */
+ if (lp_status(-1)) {
+ claim_connection(NULL,"",MAXSTATUS,True);
+ }
+
if (!open_sockets(is_daemon,port))
exit(1);