mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Use the same mlockall checks with tor_set_max_memlock
This commit is contained in:
parent
444eff6286
commit
2b1bb233b3
@ -2204,7 +2204,7 @@ tor_threads_init(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#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.
|
/** 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
|
* This only needs to be done once and can probably only be done when we have
|
||||||
* not already dropped privileges.
|
* not already dropped privileges.
|
||||||
|
Loading…
Reference in New Issue
Block a user