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

Function cbm_subprocess_delete_log

src/foundation/subprocess.c:795–808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

793}
794
795static void cbm_subprocess_delete_log(cbm_subprocess_t *process) {
796 if (!process->log_file || !process->delete_log_on_exit) {
797 return;
798 }
799#ifdef _WIN32
800 wchar_t *path = cbm_path_to_wide(process->log_file);
801 if (path) {
802 (void)DeleteFileW(path);
803 free(path);
804 }
805#else
806 (void)unlink(process->log_file);
807#endif
808}
809
810static bool cbm_subprocess_begin_terminal_transition(cbm_subprocess_t *process) {
811 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