aboutsummaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-05-02 20:18:21 +0000
committerNick Mathewson <nickm@torproject.org>2004-05-02 20:18:21 +0000
commitaf08c4f878827928109a59a257cd6681bca7d68c (patch)
tree3ecdfa0edc8799499efe0ba6d03f9e3c469f2b2f /src/or/dns.c
parenta187d3e0b6329bd70b9823bd2d5489c8aaccf08e (diff)
downloadtor-af08c4f878827928109a59a257cd6681bca7d68c.tar
tor-af08c4f878827928109a59a257cd6681bca7d68c.tar.gz
Working strerror for windows socket errors, plus some snide comments.
svn:r1775
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index 2cb4cb618..18cfea324 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -503,7 +503,8 @@ static int spawn_dnsworker(void) {
connection_t *conn;
if(tor_socketpair(AF_UNIX, SOCK_STREAM, 0, fd) < 0) {
- log(LOG_ERR, "Couldn't construct socketpair: %s", strerror(errno));
+ log(LOG_ERR, "Couldn't construct socketpair: %s",
+ tor_socket_strerror(tor_socket_errno(-1)));
exit(1);
}