Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix the fallbacks around privatization on BSD
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 21 Dec 2017 20:22:57 +0000 (21:22 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 21 Dec 2017 20:22:57 +0000 (21:22 +0100)
src/simix/smx_context.cpp

index e95fca6..e6b6c4e 100644 (file)
@@ -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