summaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-02 23:36:58 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-02 23:36:58 +0000
commitbd6b3072f902d11f969914c997533c7584f263d5 (patch)
tree9ad59d500fbcaf50711cca75e37ee62fe1914dbd /src/or/test.c
parent6221bdd294c58399e12d13983cca0f0285033092 (diff)
downloadtor-bd6b3072f902d11f969914c997533c7584f263d5.tar.gz
tor-bd6b3072f902d11f969914c997533c7584f263d5.zip
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
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c
index 044ca38e3a..c73cf00823 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -4479,7 +4479,7 @@ main(int c, char**v)
log_severity_list_t s;
memset(&s, 0, sizeof(s));
set_log_severity_config(loglevel, LOG_ERR, &s);
- add_stream_log(&s, "", stdout);
+ add_stream_log(&s, "", fileno(stdout));
}
options->command = CMD_RUN_UNITTESTS;