summaryrefslogtreecommitdiff
path: root/src/or/config.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/config.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/config.c')
-rw-r--r--src/or/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 575b4f7cac..a017d1e919 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -4170,7 +4170,7 @@ options_init_logs(or_options_t *options, int validate_only)
err?"stderr":"stdout");
} else {
add_stream_log(severity, err?"<stderr>":"<stdout>",
- err?stderr:stdout);
+ fileno(err?stderr:stdout));
}
}
goto cleanup;