From: Martin Quinson Date: Thu, 21 Dec 2017 20:22:57 +0000 (+0100) Subject: fix the fallbacks around privatization on BSD X-Git-Tag: v3.18~9 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/def07f3ab75fd0088cbcf30fc9eea47acea5fe08 fix the fallbacks around privatization on BSD --- diff --git a/src/simix/smx_context.cpp b/src/simix/smx_context.cpp index e95fca6680..e6b6c4e839 100644 --- a/src/simix/smx_context.cpp +++ b/src/simix/smx_context.cpp @@ -110,9 +110,10 @@ void SIMIX_context_mod_init() } #endif #if defined(__FreeBSD__) - if (context_factory_name == "thread" && xbt_cfg_get_string("smpi/privatization") != "no") { + if (xbt_cfg_get_string("smpi/privatization") == "mmap") { XBT_WARN("mmap broken on FreeBSD, but dlopen+thread broken too. Switching to dlopen+raw contexts."); context_factory_name = "raw"; + xbt_cfg_set_string("smpi/privatization", "dlopen"); } #endif