diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-05-02 20:18:21 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-05-02 20:18:21 +0000 |
commit | af08c4f878827928109a59a257cd6681bca7d68c (patch) | |
tree | 3ecdfa0edc8799499efe0ba6d03f9e3c469f2b2f /src/or/dns.c | |
parent | a187d3e0b6329bd70b9823bd2d5489c8aaccf08e (diff) | |
download | tor-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.c | 3 |
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); } |