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

Function main_daemon_endpoint_new

src/main.c:1265–1278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1263}
1264
1265static cbm_daemon_ipc_endpoint_t *main_daemon_endpoint_new(void) {
1266 const char *runtime_parent = NULL;
1267#ifdef CBM_ENABLE_TEST_SEAMS
1268 /* Product daemon coordination is deliberately account-wide. Product-level
1269 * lifecycle guards need an isolated rendezvous namespace so they cannot
1270 * attach to or retire a developer's real daemon while exercising exact
1271 * start/open/stop behavior. The seam is opt-in at compile time and the
1272 * detached child inherits the same environment value. */
1273 char seam_runtime_parent[MAIN_PATH_CAP];
1274 runtime_parent = cbm_safe_getenv("CBM_TEST_DAEMON_RUNTIME_PARENT", seam_runtime_parent,
1275 sizeof(seam_runtime_parent), NULL);
1276#endif
1277 return cbm_daemon_bootstrap_endpoint_new(runtime_parent);
1278}
1279
1280static bool main_local_cli_feedback_enabled(int argc, char **argv) {
1281 bool requested = false;

Callers 1

mainFunction · 0.85

Calls 2

cbm_safe_getenvFunction · 0.85

Tested by

no test coverage detected