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

Function cbm_subprocess_delete_log

src/foundation/subprocess.c:548–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546}
547
548static void cbm_subprocess_delete_log(cbm_subprocess_t *process) {
549 if (!process->log_file || !process->delete_log_on_exit) {
550 return;
551 }
552#ifdef _WIN32
553 wchar_t *path = cbm_path_to_wide(process->log_file);
554 if (path) {
555 (void)DeleteFileW(path);
556 free(path);
557 }
558#else
559 (void)unlink(process->log_file);
560#endif
561}
562
563static bool cbm_subprocess_begin_terminal_transition(cbm_subprocess_t *process) {
564 int lifecycle = atomic_load_explicit(&process->lifecycle, memory_order_acquire);

Callers 1

Calls 1

cbm_path_to_wideFunction · 0.85

Tested by

no test coverage detected