src/agent/Watchdog/WatchdogMain.cpp in passenger-5.3.4 vs src/agent/Watchdog/WatchdogMain.cpp in passenger-5.3.5

- old
+ new

@@ -163,10 +163,11 @@ } // namespace Watchdog } // namespace Passenger using namespace Passenger::Watchdog; +static WrapperRegistry::Registry *watchdogWrapperRegistry; static Schema *watchdogSchema; static ConfigKit::Store *watchdogConfig; static WorkingObjects *workingObjects; static void cleanup(const WorkingObjectsPtr &wo); @@ -798,10 +799,12 @@ */ #if !BOOST_OS_MACOS string oldOomScore = setOomScoreNeverKill(); #endif - watchdogSchema = new Schema(); + watchdogWrapperRegistry = new WrapperRegistry::Registry(); + watchdogWrapperRegistry->finalize(); + watchdogSchema = new Schema(watchdogWrapperRegistry); watchdogConfig = new ConfigKit::Store(*watchdogSchema); initializeAgent(argc, &argv, SHORT_PROGRAM_NAME " watchdog", *watchdogConfig, watchdogSchema->core.schema.loggingKit.translator, parseOptions, NULL, 2);