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

Function ordered_log_callback

tests/test_subprocess.c:728–739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

726} subprocess_log_capture_t;
727
728static void ordered_log_callback(const char *line, void *opaque) {
729 subprocess_log_capture_t *capture = opaque;
730 int index = -1;
731 char trailing = '\0';
732 bool parsed = sscanf(line, "line-%d%c", &index, &trailing) == 1;
733 capture->ordered = capture->ordered && parsed && index == capture->count;
734 capture->count++;
735 if (index == 399) {
736 capture->late_cancel_attempted = true;
737 capture->late_cancel_accepted = cbm_subprocess_request_cancel(capture->process);
738 }
739}
740
741static bool wait_for_log_marker(const char *path, const char *marker, uint64_t deadline_ms) {
742 char contents[8192];

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected