mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Use MAP_INHERIT_ZERO or MAP_INHERIT_NONE if available.
Fixes assertion failure in tests on NetBSD: slow/prob_distr/stochastic_log_logistic: [forking] May 25 03:56:58.091 [err] tor_assertion_failed_(): Bug: src/lib/crypt_ops/crypto_rand_fast.c:184: crypto_fast_rng_new_from_seed: Assertion inherit != INHERIT_RES_KEEP failed; aborting. (on Tor 0.4.1.1-alpha-dev29955f13e5
) May 25 03:56:58.091 [err] Bug: Assertion inherit != INHERIT_RES_KEEP failed in crypto_fast_rng_new_from_seed at src/lib/crypt_ops/crypto_rand_fast.c:184: . (Stack trace not available) (on Tor 0.4.1.1-alpha-dev29955f13e5
) [Lost connection!]
This commit is contained in:
parent
c7f9f7e542
commit
7971b3a5a6
@ -50,11 +50,15 @@
|
||||
|
||||
#ifdef INHERIT_ZERO
|
||||
#define FLAG_ZERO INHERIT_ZERO
|
||||
#elif defined(MAP_INHERIT_ZERO)
|
||||
#define FLAG_ZERO MAP_INHERIT_ZERO
|
||||
#endif
|
||||
#ifdef INHERIT_NONE
|
||||
#define FLAG_NOINHERIT INHERIT_NONE
|
||||
#elif defined(VM_INHERIT_NONE)
|
||||
#define FLAG_NOINHERIT VM_INHERIT_NONE
|
||||
#elif defined(MAP_INHERIT_NONE)
|
||||
#define FLAG_NOINHERIT MAP_INHERIT_NONE
|
||||
#endif
|
||||
|
||||
#elif defined(HAVE_MADVISE)
|
||||
|
Loading…
Reference in New Issue
Block a user