diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-04-28 21:14:56 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-04-28 21:14:56 +0000 |
commit | 9322641710fec0f90cc47b64748a9795ce7cba9b (patch) | |
tree | 98388c1bae7eb6a4162985f3f01e6d0c3e9bf115 /src/or/dns.c | |
parent | dd335d9bb25b1e772f0d42aa35d25895d8031c36 (diff) | |
download | tor-9322641710fec0f90cc47b64748a9795ce7cba9b.tar tor-9322641710fec0f90cc47b64748a9795ce7cba9b.tar.gz |
Use socketclose on windows as appropriate; end pid files with newline
svn:r1745
Diffstat (limited to 'src/or/dns.c')
-rw-r--r-- | src/or/dns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index ee836b52b..2cb4cb618 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -455,7 +455,7 @@ int dnsworker_main(void *data) { int *fdarray = data; int fd; - close(fdarray[0]); /* this is the side of the socketpair the parent uses */ + tor_close_socket(fdarray[0]); /* this is the side of the socketpair the parent uses */ fd = fdarray[1]; /* this side is ours */ #ifndef MS_WINDOWS connection_free_all(); /* so the child doesn't hold the parent's fd's open */ @@ -509,7 +509,7 @@ static int spawn_dnsworker(void) { spawn_func(dnsworker_main, (void*)fd); log_fn(LOG_DEBUG,"just spawned a worker."); - close(fd[1]); /* we don't need the worker's side of the pipe */ + tor_close_socket(fd[1]); /* we don't need the worker's side of the pipe */ conn = connection_new(CONN_TYPE_DNSWORKER); |