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-gencert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/tor-gencert.c') diff --git a/src/tools/tor-gencert.c b/src/tools/tor-gencert.c index b196a8c368..58ba7034ca 100644 --- a/src/tools/tor-gencert.c +++ b/src/tools/tor-gencert.c @@ -195,7 +195,7 @@ parse_commandline(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 (!identity_key_file) { identity_key_file = tor_strdup("./authority_identity_key"); -- cgit v1.2.3-54-g00ecf