diff --git a/loolwsd/LOOLBroker.cpp b/loolwsd/LOOLBroker.cpp index 0ac53c8d3..ddeb815d5 100644 --- a/loolwsd/LOOLBroker.cpp +++ b/loolwsd/LOOLBroker.cpp @@ -775,7 +775,7 @@ int main(int argc, char** argv) } // Initialize LoKit and hope we can fork and save memory by sharing pages. - const bool sharePages = std::getenv("LOK_PREINIT") != nullptr + const bool sharePages = std::getenv("LOK_NO_PREINIT") == nullptr ? globalPreinit(loTemplate) : std::getenv("LOK_FORK") != nullptr; diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp index 69a37747f..c5d3cc3e8 100644 --- a/loolwsd/LOOLWSD.cpp +++ b/loolwsd/LOOLWSD.cpp @@ -911,7 +911,6 @@ int LOOLWSD::main(const std::vector& /*args*/) return Application::EXIT_USAGE; } - //Environment::set("LOK_PREINIT", "1"); //Environment::set("LOK_FORK", "1"); //Environment::set("LD_BIND_NOW", "1"); //Environment::set("LOK_VIEW_CALLBACK", "1");