MCPcopy Create free account
hub / github.com/Icinga/icinga2 / GetDebugWorkerDelay

Function GetDebugWorkerDelay

lib/cli/daemoncommand.cpp:217–226  ·  view source on GitHub ↗

* Determine whether the developer wants to delay the worker process to attach a debugger to it. * * @return Internal.DebugWorkerDelay double */

Source from the content-addressed store, hash-verified

215 * @return Internal.DebugWorkerDelay double
216 */
217static double GetDebugWorkerDelay()
218{
219 Namespace::Ptr internal = ScriptGlobal::Get("Internal", &Empty);
220
221 Value vdebug;
222 if (internal && internal->Get("DebugWorkerDelay", &vdebug))
223 return Convert::ToDouble(vdebug);
224
225 return 0.0;
226}
227#endif /* I2_DEBUG */
228
229static String l_ObjectsPath;

Callers 1

RunWorkerFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected