diff options
-rw-r--r-- | source3/nmbd/asyncdns.c | 5 | ||||
-rw-r--r-- | source3/nmbd/nmbd.c | 8 |
2 files changed, 6 insertions, 7 deletions
diff --git a/source3/nmbd/asyncdns.c b/source3/nmbd/asyncdns.c index 94fd65b147..4982f7f340 100644 --- a/source3/nmbd/asyncdns.c +++ b/source3/nmbd/asyncdns.c @@ -89,7 +89,7 @@ static void asyncdns_process(void) struct query_record r; fstring qname; - DEBUGLEVEL = 0; + DEBUGLEVEL = -1; while (1) { if (read_data(fd_in, (char *)&r, sizeof(r)) != sizeof(r)) @@ -103,7 +103,7 @@ static void asyncdns_process(void) break; } - exit(0); + _exit(0); } @@ -127,7 +127,6 @@ void start_async_dns(void) fd_out = fd2[1]; close(fd1[1]); close(fd2[0]); - DEBUG(3,("async DNS initialised\n")); return; } diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index d53ec8c2e0..696889c484 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -561,6 +561,10 @@ static void usage(char *pname) return -1; } +#ifndef SYNC_DNS + start_async_dns(); +#endif + if (!reload_services(False)) return(-1); @@ -590,10 +594,6 @@ static void usage(char *pname) become_daemon(); } -#ifndef SYNC_DNS - start_async_dns(); -#endif - if (*pidFile) { int fd; |