[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [tor/master] Use the same mlockall checks with tor_set_max_memlock



Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Fri, 20 Nov 2009 14:45:29 -0500
Subject: Use the same mlockall checks with tor_set_max_memlock
Commit: 2b1bb233b3999a82188a471100f33e9b7b1d2c8b

---
 src/common/compat.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/common/compat.c b/src/common/compat.c
index 4fc44af..dbd3197 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -2204,7 +2204,7 @@ tor_threads_init(void)
 }
 #endif
 
-#ifdef HAVE_SYS_MMAN_H
+#if defined(HAVE_MLOCKALL) && HAVE_DECL_MLOCKALL
 /** Attempt to raise the current and max rlimit to infinity for our process.
  * This only needs to be done once and can probably only be done when we have
  * not already dropped privileges.
-- 
1.5.6.5