summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-09-24 19:25:29 +0000
committerNick Mathewson <nickm@torproject.org>2006-09-24 19:25:29 +0000
commitd276997c66c533950722836acf2e0cef2e3e2bc4 (patch)
tree689a67de04937a146d44ab9d194945dd8ad2208e /src
parentcc3de62b66476b12526dda090926d7fec98f7ec3 (diff)
downloadtor-d276997c66c533950722836acf2e0cef2e3e2bc4.tar.gz
tor-d276997c66c533950722836acf2e0cef2e3e2bc4.zip
Backport: Warn the user if libevent is 1.1a or earlier and they are using kqueue or win32 methods.
svn:r8484
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index d8ae9a47c2..3043d2ad03 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -3591,7 +3591,7 @@ check_libevent_version(const char *m, const char *v, int server)
if (!strcmp(m, "kqueue")) {
if (!strcmp(v, "1.0c") || !strcmp(v, "1.0d") || !strcmp(v, "1.0e") ||
- !strcmp(v, "1.1")) {
+ !strcmp(v, "1.1") || !strcmp(v, "1.1a")) {
buggy = 1;
}
} else if (!strcmp(m, "epoll")) {
@@ -3605,6 +3605,11 @@ check_libevent_version(const char *m, const char *v, int server)
} else if (!strcmp(m, "poll")) {
if (!strcmp(v, "1.0c") || !strcmp(v, "1.0d") || !strcmp(v, "1.0e"))
slow = 1;
+ } else if (!strcmp(m, "win32")) {
+ if (!strcmp(v, "1.0c") || !strcmp(v, "1.0d") || !strcmp(v, "1.0e") ||
+ !strcmp(v, "1.1") || !strcmp(v, "1.1a")) {
+ buggy = 1;
+ }
}
if (buggy) {