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

Function cbm_subprocess_delete_log

src/foundation/subprocess.c:547–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547static void cbm_subprocess_delete_log(cbm_subprocess_t *process) {
548 if (!process->log_file || !process->delete_log_on_exit) {
549 return;
550 }
551#ifdef _WIN32
552 wchar_t *path = cbm_path_to_wide(process->log_file);
553 if (path) {
554 (void)DeleteFileW(path);
555 free(path);
556 }
557#else
558 (void)unlink(process->log_file);
559#endif
560}
561
562static bool cbm_subprocess_begin_terminal_transition(cbm_subprocess_t *process) {
563 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