Commit 2b1bb233 authored by Nick Mathewson's avatar Nick Mathewson 🌉
Browse files

Use the same mlockall checks with tor_set_max_memlock

parent 444eff62
......@@ -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.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment