diff options
author | Jeremy Allison <jra@samba.org> | 2000-11-27 21:37:07 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-11-27 21:37:07 +0000 |
commit | 120f3afa899eac9a03643ce3e81264d245e09d3d (patch) | |
tree | 35402e3eaf5a000c2b6775976f377112d2c66084 /source3/smbd | |
parent | a1c3f33d94d7c40f3511e8dafde839ef0915d9a3 (diff) | |
download | samba-120f3afa899eac9a03643ce3e81264d245e09d3d.tar.gz samba-120f3afa899eac9a03643ce3e81264d245e09d3d.tar.bz2 samba-120f3afa899eac9a03643ce3e81264d245e09d3d.zip |
Fixed messaging so main smbd can get lib/message.c messages.
Jeremy.
(This used to be commit 349d58fb5758cebc5a8575f80103150b8cd0a080)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/server.c | 8 |
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); |