| 1172 | } |
| 1173 | |
| 1174 | static void cbm_win_force_tree(cbm_subprocess_t *process, uint64_t now) { |
| 1175 | if (process->force_sent) { |
| 1176 | return; |
| 1177 | } |
| 1178 | if (process->force_started_ms == 0) { |
| 1179 | process->force_started_ms = now; |
| 1180 | } |
| 1181 | if (TerminateJobObject(process->job, 1)) { |
| 1182 | if (!process->root_reaped) { |
| 1183 | process->root_forced = true; |
| 1184 | } |
| 1185 | process->result.forced = true; |
| 1186 | process->force_sent = true; |
| 1187 | } else { |
| 1188 | process->containment_failed = true; |
| 1189 | } |
| 1190 | } |
| 1191 | |
| 1192 | static void cbm_win_capture_root(cbm_subprocess_t *process, DWORD code) { |
| 1193 | process->root_reaped = true; |
no outgoing calls
no test coverage detected