MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_daemon_bootstrap_execute

Function cbm_daemon_bootstrap_execute

src/daemon/bootstrap.c:1406–1427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1404#endif
1405
1406cbm_daemon_bootstrap_status_t cbm_daemon_bootstrap_execute(
1407 const cbm_daemon_bootstrap_config_t *config, cbm_daemon_bootstrap_result_t *result_out) {
1408 bootstrap_production_context_t context = {0};
1409 cbm_daemon_bootstrap_ops_t ops = {
1410 .context = &context,
1411 .cohort_acquire = bootstrap_production_cohort_acquire,
1412 .cohort_release = bootstrap_production_cohort_release,
1413 .probe = bootstrap_production_probe,
1414 .startup_lock_try_acquire = bootstrap_production_lock,
1415 .startup_lock_prepare_handoff = bootstrap_production_handoff,
1416 .startup_lock_release = bootstrap_production_unlock,
1417 .spawn_daemon = bootstrap_production_spawn,
1418 .visible_diagnostic = bootstrap_production_diagnostic,
1419 .start_failure_probe = bootstrap_production_start_failure_probe,
1420 };
1421#ifdef CBM_ENABLE_TEST_SEAMS
1422 if (g_bootstrap_spawn_override_for_test) {
1423 ops.spawn_daemon = bootstrap_seam_spawn;
1424 }
1425#endif
1426 return cbm_daemon_bootstrap_execute_with_ops(config, &ops, result_out);
1427}

Tested by

no test coverage detected