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

Function cbm_win_force_tree

src/foundation/subprocess.c:798–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

796}
797
798static void cbm_win_force_tree(cbm_subprocess_t *process, uint64_t now) {
799 if (process->force_sent) {
800 return;
801 }
802 if (process->force_started_ms == 0) {
803 process->force_started_ms = now;
804 }
805 if (TerminateJobObject(process->job, 1)) {
806 if (!process->root_reaped) {
807 process->root_forced = true;
808 }
809 process->result.forced = true;
810 process->force_sent = true;
811 } else {
812 process->containment_failed = true;
813 }
814}
815
816static void cbm_win_capture_root(cbm_subprocess_t *process, DWORD code) {
817 process->root_reaped = true;

Callers 1

cbm_subprocess_poll_winFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected