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