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

Function runtime_current_process_id

src/daemon/runtime.c:514–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512}
513
514static uint64_t runtime_current_process_id(void) {
515#ifdef _WIN32
516 return (uint64_t)GetCurrentProcessId();
517#elif defined(__APPLE__) || defined(__linux__) || defined(__FreeBSD__)
518 return (uint64_t)getpid();
519#else
520 return 0;
521#endif
522}
523
524static void runtime_process_image_reference_init(runtime_process_image_reference_t *reference) {
525 if (!reference) {

Calls

no outgoing calls

Tested by

no test coverage detected