| 1161 | } |
| 1162 | |
| 1163 | static void cbm_win_begin_termination(cbm_subprocess_t *process, uint64_t now) { |
| 1164 | if (process->termination_started) { |
| 1165 | return; |
| 1166 | } |
| 1167 | process->termination_started = true; |
| 1168 | process->termination_started_ms = now; |
| 1169 | /* Best effort only: services and detached parents may have no shared console. |
| 1170 | * The Job Object remains the authoritative force-containment boundary. */ |
| 1171 | (void)GenerateConsoleCtrlEvent(CTRL_BREAK_EVENT, process->process_id); |
| 1172 | } |
| 1173 | |
| 1174 | static void cbm_win_force_tree(cbm_subprocess_t *process, uint64_t now) { |
| 1175 | if (process->force_sent) { |
no outgoing calls
no test coverage detected