From bd6b3072f902d11f969914c997533c7584f263d5 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 2 Dec 2008 23:36:58 +0000 Subject: Change logging code to use fds instead of stdio. Fixes bug 861, and probably makes logging slightly faster. Not a backport candidate: bug 861 is too obscure and harmless. svn:r17456 --- src/tools/tor-resolve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/tor-resolve.c') diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c index 90f736df35..50ab28e1cd 100644 --- a/src/tools/tor-resolve.c +++ b/src/tools/tor-resolve.c @@ -367,7 +367,7 @@ main(int argc, char **argv) set_log_severity_config(LOG_DEBUG, LOG_ERR, s); else set_log_severity_config(LOG_WARN, LOG_ERR, s); - add_stream_log(s, "", stderr); + add_stream_log(s, "", fileno(stderr)); if (n_args == 1) { log_debug(LD_CONFIG, "defaulting to localhost"); -- cgit v1.2.3-54-g00ecf