| 796 | } |
| 797 | |
| 798 | static 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 | |
| 816 | static void cbm_win_capture_root(cbm_subprocess_t *process, DWORD code) { |
| 817 | process->root_reaped = true; |
no outgoing calls
no test coverage detected