From 120f3afa899eac9a03643ce3e81264d245e09d3d Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 27 Nov 2000 21:37:07 +0000 Subject: Fixed messaging so main smbd can get lib/message.c messages. Jeremy. (This used to be commit 349d58fb5758cebc5a8575f80103150b8cd0a080) --- source3/smbd/server.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source3') 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); -- cgit