summaryrefslogtreecommitdiffstats
path: root/source/nmbd/asyncdns.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-11-01 23:42:28 +0000
committerAndrew Tridgell <tridge@samba.org>1997-11-01 23:42:28 +0000
commit21dd073a2003fa4707c1577a6b07bcef30eb6a50 (patch)
treed4a6ab4f4ef030dd8dfe6d77ca4b64dddef82946 /source/nmbd/asyncdns.c
parentfa251b7eba48c9ef2d8d3d798ce5b99c8508c243 (diff)
downloadsamba-21dd073a2003fa4707c1577a6b07bcef30eb6a50.tar.gz
samba-21dd073a2003fa4707c1577a6b07bcef30eb6a50.tar.xz
samba-21dd073a2003fa4707c1577a6b07bcef30eb6a50.zip
minor async DNS cleanups
- start it earlier - set DEBUGLEVEL to -1 to prevent any debug calls in child - exit with _exit() to prevent logfile corruption
Diffstat (limited to 'source/nmbd/asyncdns.c')
-rw-r--r--source/nmbd/asyncdns.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/nmbd/asyncdns.c b/source/nmbd/asyncdns.c
index 94fd65b147a..4982f7f340f 100644
--- a/source/nmbd/asyncdns.c
+++ b/source/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;
}