From def07f3ab75fd0088cbcf30fc9eea47acea5fe08 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 21 Dec 2017 21:22:57 +0100 Subject: [PATCH] fix the fallbacks around privatization on BSD --- src/simix/smx_context.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.20.1